diff options
Diffstat (limited to 'settings/js/apps.js')
-rw-r--r-- | settings/js/apps.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index c15d6a0f74d..7330f426af7 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -235,7 +235,11 @@ OC.Settings.Apps = OC.Settings.Apps || { OC.Settings.Apps.hideErrorMessage(appId); $.post(OC.filePath('settings','ajax','updateapp.php'),{appid:appId},function(result) { if(!result || result.status !== 'success') { - OC.Settings.Apps.showErrorMessage(appId, t('settings','Error while updating app')); + if (result.data && result.data.message) { + OC.Settings.Apps.showErrorMessage(appId, result.data.message); + } else { + OC.Settings.Apps.showErrorMessage(appId, t('settings','Error while updating app')); + } element.val(oldButtonText); } else { |