파일을 업로드하는 도중에 HTTP 연결이 끊기면 서버가 크래시되던 버그 수정

This commit is contained in:
static
2025-01-15 06:09:27 +09:00
parent ed4da7b1df
commit 9f9c52ff94
3 changed files with 68 additions and 73 deletions

View File

@@ -66,9 +66,9 @@
info = getDirectoryInfo(data.id, $masterKeyStore?.get(1)?.key!);
window.alert("파일이 업로드되었어요.");
})
.catch(() => {
.catch((e: Error) => {
// TODO: FIXME
window.alert("파일 업로드에 실패했어요.");
window.alert(`파일 업로드에 실패했어요.\n${e.message}`);
});
};