فهرست منبع

Merge pull request #17777 from ShirasawaSama/patch-33

fix: show error message when the uploading file is modified
Tim Jaeryang Baek 1 هفته پیش
والد
کامیت
acdafcd18d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/lib/apis/files/index.ts

+ 1 - 1
src/lib/apis/files/index.ts

@@ -23,7 +23,7 @@ export const uploadFile = async (token: string, file: File, metadata?: object |
 			return res.json();
 		})
 		.catch((err) => {
-			error = err.detail;
+			error = err.detail || err.message;
 			console.error(err);
 			return null;
 		});