summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-07-22 21:02:18 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-07-22 21:02:18 +0300
commit5160ea60639d58a054359834d7ac6e82096c4d57 (patch)
treedd8e90f476e49abbd45f30829a3f6e516e33ba9f /core
parent57d178274de44d3f5a8bb6c93f346f7ca61a8f47 (diff)
downloadnextcloud-server-5160ea60639d58a054359834d7ac6e82096c4d57.tar.gz
nextcloud-server-5160ea60639d58a054359834d7ac6e82096c4d57.zip
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 4c8fd874107..71e6136bf71 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -122,7 +122,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'));
}
});
},