e.errors not e.error (#4990)

This commit is contained in:
Matthew Irish 2018-07-24 23:16:03 -05:00 committed by GitHub
parent 0e659ca6be
commit 07cdda2cd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ export default Ember.Component.extend({
})
.catch(e => {
this.get('flashMessages').success(
`There was a problem enabling the entity: ${model.id} - ${e.error.join(' ') || e.message}`
`There was a problem enabling the entity: ${model.id} - ${e.errors.join(' ') || e.message}`
);
});
},

View File

@ -18,7 +18,7 @@ export default Ember.Controller.extend(ListController, {
})
.catch(e => {
this.get('flashMessages').success(
`There was a problem deleting ${type}: ${id} - ${e.error.join(' ') || e.message}`
`There was a problem deleting ${type}: ${id} - ${e.errors.join(' ') || e.message}`
);
});
},
@ -36,7 +36,7 @@ export default Ember.Controller.extend(ListController, {
})
.catch(e => {
this.get('flashMessages').success(
`There was a problem ${action[1]} ${type}: ${id} - ${e.error.join(' ') || e.message}`
`There was a problem ${action[1]} ${type}: ${id} - ${e.errors.join(' ') || e.message}`
);
});
},