diff --git a/History.md b/History.md index 8f3414126..9b80e02d1 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,7 @@ +## v0.10.0 + +* Renaming Errors to Messages (thanks @yourcelf!). + ## v0.9.11 “FormScope” * Now using [Autoform](https://github.com/aldeed/meteor-autoform/)'s **quickform** feature to generate post submit and edit forms. diff --git a/client/views/posts/post_submit.js b/client/views/posts/post_submit.js index 74a022728..382736dd1 100644 --- a/client/views/posts/post_submit.js +++ b/client/views/posts/post_submit.js @@ -49,7 +49,7 @@ AutoForm.hooks({ }, onError: function(operation, error, template) { - flashMessage(error.reason.split('|')[0], 'error'); // workaround because error.details returns undefined + flashMessage(error.message.split('|')[0], 'error'); // workaround because error.details returns undefined clearSeenMessages(); // $(e.target).removeClass('disabled'); if (error.error == 603) {