Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b39235

Browse files
committed
fmt
1 parent 7b79132 commit 1b39235

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/api/errors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ export const getErrorDetail = (error: unknown): string | undefined => {
115115
return error.detail;
116116
}
117117

118-
// APIErrors that are empty still benefit from checking the developer
119-
// console if no detail is provided. So only use the detail field if
118+
// APIErrors that are empty still benefit from checking the developer
119+
// console if no detail is provided. So only use the detail field if
120120
// it is not empty.
121121
if (isApiError(error) && error.response.data.detail) {
122122
return error.response.data.detail;

0 commit comments

Comments
 (0)