Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[조형민] sprint7 이후 수정 내용 반영입니다. 멘토님 가능하실 때 머지 부탁드립니다. #7

Conversation

paengdal
Copy link
Collaborator

요구사항

기본

  • [x]
  • []
  • []

심화

  • [x]
  • []

주요 변경사항

스크린샷

image

멘토에게

  • 셀프 코드 리뷰를 통해 질문 이어가겠습니다.

@paengdal paengdal requested a review from seobew January 14, 2025 06:41
@paengdal paengdal self-assigned this Jan 14, 2025
res.sendStatus(404);
} else {
res.status(500).send({
message: e.message,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e에서 message 가 존재하지 않을수 있습니다. 모든 케이스에서 충족시키는 것이 없을때는 "Internal Server Error"같이 내려주는 것이 더 좋을것 같습니다~

e instanceof Prisma.PrismaClientKnownRequestError &&
e.code === 'P2025'
) {
res.sendStatus(404);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기도 message 를 내려주는게 fe에서 에러 보여주기 더 좋을것 같아요. 통일성도 있고요!

Copy link
Collaborator

@seobew seobew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

몇개 코멘트만 남겨놨습니다~ 나머지는 전체적으로 잘 분리해주신것 같아요~

@seobew seobew merged commit a595129 into codeit-sprint-fullstack:express-조형민 Jan 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants