modify file upload..

This commit is contained in:
2026-07-08 14:07:37 +09:00
parent e63b1c6f43
commit f67ddb7bec
2 changed files with 21 additions and 4 deletions
+14 -2
View File
@@ -474,7 +474,13 @@ export function CurriculumPage({ session, selectedCourseId }: { session: AuthSes
message: referenceFile.name,
});
} catch (reason) {
setError(reason instanceof Error ? reason.message : '참고자료를 업로드하지 못했습니다.');
const message = reason instanceof Error ? reason.message : '참고자료를 업로드하지 못했습니다.';
setError(message);
showToast({
title: '참고자료 업로드 실패',
message,
variant: 'error',
});
} finally {
setSaving(false);
}
@@ -502,7 +508,13 @@ export function CurriculumPage({ session, selectedCourseId }: { session: AuthSes
message: exampleCodeFile.name,
});
} catch (reason) {
setError(reason instanceof Error ? reason.message : '예제 코드를 업로드하지 못했습니다.');
const message = reason instanceof Error ? reason.message : '예제 코드를 업로드하지 못했습니다.';
setError(message);
showToast({
title: '예제 코드 업로드 실패',
message,
variant: 'error',
});
} finally {
setSaving(false);
}