瀏覽代碼

fix: error message null

GyDi 2 年之前
父節點
當前提交
fb653ff99d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/profile/profile-viewer.tsx

+ 1 - 1
src/components/profile/profile-viewer.tsx

@@ -115,7 +115,7 @@ export const ProfileViewer = forwardRef<ProfileViewerRef, Props>(
           fileDataRef.current = null;
           props.onChange();
         } catch (err: any) {
-          Notice.error(err.message);
+          Notice.error(err.message || err.toString());
         }
       })
     );