From fb653ff99dabc1ceb89322a9a5aedd9be98988ef Mon Sep 17 00:00:00 2001 From: GyDi Date: Fri, 19 May 2023 10:53:11 +0800 Subject: [PATCH] fix: error message null --- src/components/profile/profile-viewer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/profile/profile-viewer.tsx b/src/components/profile/profile-viewer.tsx index 563dbca..079ca1f 100644 --- a/src/components/profile/profile-viewer.tsx +++ b/src/components/profile/profile-viewer.tsx @@ -115,7 +115,7 @@ export const ProfileViewer = forwardRef( fileDataRef.current = null; props.onChange(); } catch (err: any) { - Notice.error(err.message); + Notice.error(err.message || err.toString()); } }) );