Skip to content

Commit

Permalink
Merge pull request #245 from EATSTEAK/fix/reserve_error_message
Browse files Browse the repository at this point in the history
`reserve` 페이지에서 오류 메시지가 올바르게 표시되도록 수정
  • Loading branch information
Twince authored Sep 8, 2022
2 parents 7ab98e3 + cc7e87e commit 984be6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/client/src/routes/reserve/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@
}
function getErrorMessage(errorData: LockerError): string {
if (errorData.name === 'BlockedError') {
if (errorData.name === 'Blocked') {
return '현재는 해당 작업을 수행할 수 없습니다. 이용 시간을 확인하세요.';
} else if (errorData.name === 'ForbiddenError') {
} else if (errorData.name === 'Forbidden') {
return '해당 작업을 수행할 권한이 없습니다. 로그인 여부를 확인하세요.';
} else if (errorData.name === 'CantClaimError') {
} else if (errorData.name === 'CantClaim') {
return '이미 다른 사람이 예약한 사물함입니다. 다른 사물함을 예약하세요.';
} else if (errorData.name === 'CantUnclaimError') {
} else if (errorData.name === 'CantUnclaim') {
return '이 사물함은 반납할 수 없습니다. 이미 반납되었을 수 있습니다.';
} else {
return '알 수 없는 오류입니다. 관리자에게 문의하세요.';
Expand Down

0 comments on commit 984be6c

Please sign in to comment.