Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-07-22 22:02:18 +0400
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-07-24 22:48:23 +0400
commit7deebc926b30dbc49e4148495c3ce921a026a05c (patch)
tree0a970a04fe6ecfcc11eb2dd547fdfc2f4cf3bf8d /core
parentd09e887945f673adf4eb690fda672ab4ba8d1daa (diff)
Show generic error when there is no error
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js
index aec869dabc5..1fa76e62698 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -123,7 +123,12 @@ OC.Share={
callback(result.data);
}
} else {
- OC.dialogs.alert(result.data.message, t('core', 'Error while sharing'));
+ if (result.data && result.data.message) {
+ var msg = result.data.message;
+ } else {
+ var msg = t('core', 'Error');
+ }
+ OC.dialogs.alert(msg, t('core', 'Error while sharing'));
}
});
},