Skip to content

Commit

Permalink
chore: api error name 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
poiu694 committed Jun 27, 2024
1 parent c936323 commit 331944a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/api/HTTPClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class HTTPClient {
}

throw new APIError({
name: 'Unexpected Error',
name: 'API Error',
message: 'Unexpected Error',
})
}
Expand Down Expand Up @@ -140,8 +140,8 @@ class HTTPClient {
return data
} catch (error) {
throw new APIError({
name: 'api-error',
message: '서버에 문제가 생겼습니다.',
name: 'API Error',
message: 'Error on fetching api. please check your api',
})
}
}
Expand Down

0 comments on commit 331944a

Please sign in to comment.