Skip to content

Commit

Permalink
[#349] next 서버 에러 로그 추가 (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwoo00106 authored Jul 11, 2024
1 parent f053a77 commit d5532dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.13.0
20
1 change: 1 addition & 0 deletions packages/app/src/features/server/libs/withHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default function withHandler<
try {
await handler({ req, res, accessToken, refreshToken })
} catch (error) {
console.error(error)
if (!isAxiosError(error))
return res.status(500).json({ message: ErrorMapper(error, errors) })

Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/atoms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ export { default as SegmentedControl } from './SegmentedControl'
export { default as NewSelect } from './Select'
export { default as FileInput } from './FileInput'
export { default as ErrorWrapper } from './ErrorWrapper'
export { default as DescriptionWrapper } from './DescriptionWrapper'
export { default as DescriptionWrapper } from './DescriptionWrapper'

0 comments on commit d5532dc

Please sign in to comment.