mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: show errors when user delete fails
This commit is contained in:
@@ -45,6 +45,8 @@ define('accounts/delete', ['api', 'bootbox'], function (api) {
|
||||
if (typeof callback === 'function') {
|
||||
return callback();
|
||||
}
|
||||
}).catch(function (err) {
|
||||
app.alertError(err);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user