From cbfd20e7f2b1b0ae8716facfa8b360b4de69ac23 Mon Sep 17 00:00:00 2001 From: Aaron3S Date: Wed, 12 Feb 2025 11:10:53 +0800 Subject: [PATCH] fix: fix error display --- .../services/connect-token/acl-dialog/acl-dialog.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/services/connect-token/acl-dialog/acl-dialog.component.ts b/src/app/services/connect-token/acl-dialog/acl-dialog.component.ts index d72a7e4a..45091cd3 100644 --- a/src/app/services/connect-token/acl-dialog/acl-dialog.component.ts +++ b/src/app/services/connect-token/acl-dialog/acl-dialog.component.ts @@ -51,8 +51,9 @@ export class ElementACLDialogComponent implements OnInit { } else if (typeof error === 'object') { if (error.detail) { error = error.detail; + } else { + error = JSON.stringify(error); } - error = JSON.stringify(error); } return error; }