mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 10:45:44 +08:00
FIX: exceptions raised when editing replies were not displaying their error messages
This commit is contained in:
parent
8893ca6238
commit
dbcf4e2474
@ -762,15 +762,10 @@ const Composer = RestModel.extend({
|
||||
.then(() => {
|
||||
// rest model only sets props after it is saved
|
||||
post.set("cooked", props.cooked);
|
||||
return post
|
||||
.save(props)
|
||||
.then(result => {
|
||||
this.clearState();
|
||||
return result;
|
||||
})
|
||||
.catch(error => {
|
||||
throw new Error(error);
|
||||
});
|
||||
return post.save(props).then(result => {
|
||||
this.clearState();
|
||||
return result;
|
||||
});
|
||||
})
|
||||
.catch(rollback);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user