show error message on post edit page

This commit is contained in:
Sacha Greif 2014-11-18 10:31:29 +09:00
parent bf90eedf37
commit e11b6db40f

View file

@ -186,7 +186,7 @@ Template[getTemplate('post_edit')].events({
Posts.update(post._id, updateObject, function(error){
if(error){
console.log(error);
throwError(error.reason);
throwError(error.message);
clearSeenErrors();
$(e.target).removeClass('disabled');
}else{