From 7deebc926b30dbc49e4148495c3ce921a026a05c Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Mon, 22 Jul 2013 21:02:18 +0300 Subject: [PATCH] Show generic error when there is no error --- core/js/share.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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')); } }); }, -- 2.39.5