FIX: Show better default error when failing to delete all user posts (#20985)

This commit is contained in:
Daniel Waterworth 2023-04-05 14:26:00 -05:00 committed by GitHub
parent 3d7833d67e
commit 79c87b5003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
});
};