Fix up uncaught ajax error alert message

This commit is contained in:
Toby Zerner 2015-02-12 14:34:07 +10:30
parent ffef6af403
commit c33697654a

View File

@ -27,7 +27,7 @@ export default JsonApiAdapter.extend({
if (errors instanceof JsonApiAdapter.ServerError) {
var message = AlertMessage.create({
type: 'warning',
message: errors.message
message: 'Something went wrong: '+errors.message.errors[0].code
});
this.get('alerts').send('alert', message);
return;