Skip to content

Commit 61feea3

Browse files
authored
Merge pull request #1225 from jumpserver/pr@dev@fix_error_display
fix: fix error display
2 parents ebbbbac + cbfd20e commit 61feea3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/services/connect-token/acl-dialog/acl-dialog.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ export class ElementACLDialogComponent implements OnInit {
5151
} else if (typeof error === 'object') {
5252
if (error.detail) {
5353
error = error.detail;
54+
} else {
55+
error = JSON.stringify(error);
5456
}
55-
error = JSON.stringify(error);
5657
}
5758
return error;
5859
}

0 commit comments

Comments
 (0)