mirror of
https://github.com/flarum/framework.git
synced 2024-11-23 01:23:08 +08:00
Fix up uncaught ajax error alert message
This commit is contained in:
parent
ffef6af403
commit
c33697654a
|
@ -27,7 +27,7 @@ export default JsonApiAdapter.extend({
|
|||
if (errors instanceof JsonApiAdapter.ServerError) {
|
||||
var message = AlertMessage.create({
|
||||
type: 'warning',
|
||||
message: errors.message
|
||||
message: 'Something went wrong: '+errors.message.errors[0].code
|
||||
});
|
||||
this.get('alerts').send('alert', message);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user