Skip to content

Commit

Permalink
fix(crux-ui): log swallowed error
Browse files Browse the repository at this point in the history
  • Loading branch information
nandor-magyar committed Apr 29, 2024
1 parent 38d8954 commit 6e9a636
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/crux-ui/e2e/utils/global.teardown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const fetchCruxFromBrowser = async (cookie: string, cruxUrl: string, url:
try {
body = await res.json()
} catch (e: any) {
console.error('[ERROR]: Crux fetch failed to parse error body of url', url, e)
console.error('[ERROR]: Crux fetch failed to parse error body of url', `${cruxUrl}${url}`, e)
}

if (body && isDyoError(body)) {
Expand Down
2 changes: 1 addition & 1 deletion web/crux-ui/src/server/crux-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const fetchCrux = async (
try {
body = await res.json()
} catch (e: any) {
console.error('[ERROR]: Crux fetch failed to parse error body of url', url, e)
console.error('[ERROR]: Crux fetch failed to parse error body of url', `${cruxUrl}${url}`, e)
}

const apiError = fromApiError(res.status, body ?? {})
Expand Down

0 comments on commit 6e9a636

Please sign in to comment.