What @Gilgalas suggested is WRONG. Only use generatedDetailedMessage for debugging purpose.
https://github.com/emberjs/data/blob/master/addon/adapters/rest.js#L1188
If you want to use errors sent from server.
{
errors: {
attributeName: [
'error 1',
'error 2'
]
}
}
Then iterate over in
mo.save()
.then(/* code */)
.catch(error) {
// error.errors.attributeName[0], error.errors.attributeName[1]
}
By the way, also take a look at similar topic in the forum: Error Handling with Rest Adapter and custom error json - #9 by mtangoo