[FIX] web: don't shadow exception in do_backup
This commit is contained in:
parent
62aa07c7e3
commit
e901fa20e4
|
@ -555,12 +555,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();
|
||||
|
|
Loading…
Reference in New Issue