Merge pull request #17777 from ShirasawaSama/patch-33

fix: show error message when the uploading file is modified
This commit is contained in:
Tim Jaeryang Baek authored and GitHub committed 2025-09-26 12:52:09 -05:00
commit acdafcd18d
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ export const uploadFile = async (token: string, file: File, metadata?: object |
return res.json(); return res.json();
}) })
.catch((err) => { .catch((err) => {
error = err.detail; error = err.detail || err.message;
console.error(err); console.error(err);
return null; return null;
}); });