diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-07-22 22:02:18 +0400 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-07-24 22:48:23 +0400 |
commit | 7deebc926b30dbc49e4148495c3ce921a026a05c (patch) | |
tree | 0a970a04fe6ecfcc11eb2dd547fdfc2f4cf3bf8d /core | |
parent | d09e887945f673adf4eb690fda672ab4ba8d1daa (diff) |
Show generic error when there is no error
Diffstat (limited to 'core')
-rw-r--r-- | core/js/share.js | 7 |
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')); } }); }, |