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 2025-09-26 12:52:09 -05:00 committed by GitHub
commit acdafcd18d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
}); });