summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-08-29 16:50:45 +0200
committerJoas Schilling <coding@schilljs.com>2016-10-18 16:22:20 +0200
commit9c3e855812454b3d0367f251e9940a53f687a4e0 (patch)
tree1070e4bed6eb28dadaf0172357f696fc21d89676 /settings
parent656e3f7a24d5ce64f10a1c8032f9b76fee1c9908 (diff)
downloadnextcloud-server-9c3e855812454b3d0367f251e9940a53f687a4e0.tar.gz
nextcloud-server-9c3e855812454b3d0367f251e9940a53f687a4e0.zip
The red box already makes clear it's an error
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'settings')
-rw-r--r--settings/js/personal.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index 3290074a84c..dbc82758fd1 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -306,8 +306,8 @@ $(document).ready(function () {
msg = data.jqXHR.responseJSON.data.message;
}
avatarResponseHandler({
- data: {
- message: t('settings', 'An error occurred: {message}', { message: msg })
+ data: {
+ 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
}
});
});