By default, when a GORM .save()
function call fails, it fails silently. If you want it to always throw an error, add this to your /grails-app/conf/application.yml file at the bottom.
---
grails:
gorm:
failOnError: true
By default, when a GORM .save()
function call fails, it fails silently. If you want it to always throw an error, add this to your /grails-app/conf/application.yml file at the bottom.
---
grails:
gorm:
failOnError: true