Skip to content

Commit

Permalink
[webclient] 5xx 에러인 경우만 트러플에 노출 (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
ars-ki-00 authored Jul 6, 2024
1 parent eedf574 commit 8024bc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/snutt-webclient/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ export const App = () => {
responseBody.errcode === 8194
)
setWrongTokenDialogOpen(true);
else services.errorService.captureError(new Error(JSON.stringify(responseBody)));
else if (response.status >= 500) {
services.errorService.captureError(new Error(JSON.stringify(responseBody)));
}
}

return {
Expand Down

0 comments on commit 8024bc1

Please sign in to comment.