Explorar o código

fix: error message null

GyDi %!s(int64=2) %!d(string=hai) anos
pai
achega
fb653ff99d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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());
         }
       })
     );