Skip to content

Commit

Permalink
[feat] #71 삭제 가능 여부 예외 메세지 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuKwanKon committed Apr 1, 2024
1 parent f43f6f1 commit e9f0fac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private void validateDuplicateScrap(Long postId, Long userId) {

private void validateExistScrap(Long postId, Long userId) {
if(!existPostInScrap(postId, userId))
throw new InvalidValueException();
throw new InvalidValueException(INVALID_DELETE_SCRAP);
}

private boolean existPostInScrap(Long postId, Long userId) {
Expand Down

0 comments on commit e9f0fac

Please sign in to comment.