fix: show error message when the uploading file is modified

This commit is contained in:
Shirasawa 2025-09-26 17:31:16 +08:00 committed by GitHub
parent f7ea60b500
commit 42faa63227
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();
})
.catch((err) => {
error = err.detail;
error = err.detail || err.message;
console.error(err);
return null;
});