From 79c87b500346e403e9b568d41415647162e723aa Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Wed, 5 Apr 2023 14:26:00 -0500 Subject: [PATCH] FIX: Show better default error when failing to delete all user posts (#20985) --- .../javascripts/admin/addon/controllers/admin-user-index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/addon/controllers/admin-user-index.js b/app/assets/javascripts/admin/addon/controllers/admin-user-index.js index b4bfbac8fa9..f02085ecf2a 100644 --- a/app/assets/javascripts/admin/addon/controllers/admin-user-index.js +++ b/app/assets/javascripts/admin/addon/controllers/admin-user-index.js @@ -660,7 +660,7 @@ export default class AdminUserIndexController extends Controller.extend( progressModal.send("closeModal"); let error; AdminUser.find(user.get("id")).then((u) => user.setProperties(u)); - error = extractError(e) || I18n.t("admin.user.delete_posts_failed"); + error = extractError(e, I18n.t("admin.user.delete_posts_failed")); this.dialog.alert(error); }); };