The red box already makes clear it's an error
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
656e3f7a24
commit
9c3e855812
|
@ -307,7 +307,7 @@ $(document).ready(function () {
|
|||
}
|
||||
avatarResponseHandler({
|
||||
data: {
|
||||
message: t('settings', 'An error occurred: {message}', { message: msg })
|
||||
message: msg
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -324,7 +324,7 @@ $(document).ready(function () {
|
|||
url: OC.generateUrl('/avatar/'),
|
||||
data: { path: path }
|
||||
}).done(avatarResponseHandler)
|
||||
.fail(function(jqXHR, status){
|
||||
.fail(function(jqXHR) {
|
||||
var msg = jqXHR.statusText + ' (' + jqXHR.status + ')';
|
||||
if (!_.isUndefined(jqXHR.responseJSON) &&
|
||||
!_.isUndefined(jqXHR.responseJSON.data) &&
|
||||
|
@ -334,7 +334,7 @@ $(document).ready(function () {
|
|||
}
|
||||
avatarResponseHandler({
|
||||
data: {
|
||||
message: t('settings', 'An error occurred: {message}', { message: msg })
|
||||
message: msg
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue