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