mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-11-04 08:10:28 +09:00
파일을 업로드하는 도중에 HTTP 연결이 끊기면 서버가 크래시되던 버그 수정
This commit is contained in:
1 parent
ed4da7b1df
commit
9f9c52ff94
3 files changed
+68
-73
No files matched your search
@@ -115,10 +115,8 @@ export const uploadFile = async (
|
||||
} catch (e) {
|
||||
await safeUnlink(path);
|
||||
|
||||
if (e instanceof IntegrityError) {
|
||||
if (e.message === "Inactive MEK version") {
|
||||
error(400, "Invalid MEK version");
|
||||
}
|
||||
if (e instanceof IntegrityError && e.message === "Inactive MEK version") {
|
||||
error(400, "Invalid MEK version");
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user