diff options
Diffstat (limited to 'addons/web/static/src/js/chrome.js')
| -rw-r--r-- | addons/web/static/src/js/chrome.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 0cafc63d829..7e42441b877 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -600,12 +600,9 @@ instance.web.DatabaseManager = instance.web.Widget.extend({ self.do_notify(_t("Backed"), _t("Database backed up successfully")); }, error: function(error){ - if(error){ - self.display_error({ - title: _t("Backup Database"), - error: 'AccessDenied' - }); - } + if (error && error[1]) { + self.display_error(error[1][0]); + } }, complete: function() { self.unblockUI(); |
