diff --git a/packages/ember-data/lib/system/model/errors.js b/packages/ember-data/lib/system/model/errors.js index 8e26ca78e4f..3ebf5c3ad3f 100644 --- a/packages/ember-data/lib/system/model/errors.js +++ b/packages/ember-data/lib/system/model/errors.js @@ -131,7 +131,8 @@ export default Ember.Object.extend(Ember.Enumerable, Ember.Evented, { email: 'invalidEmail' }); user.save().catch(function(){ - user.get('errors').errorsFor('email'); // ["Doesn't look like a valid email."] + user.get('errors').errorsFor('email'); // returns: + // [{attribute: "email", message: "Doesn't look like a valid email."}] }); ```