Skip to content

Commit 0264f45

Browse files
committed
Merge branch 'develop' of https://github.com/mars-protocol/mars-v2-frontend into develop
2 parents 0fe7c46 + 2090290 commit 0264f45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/prices/getPythPrices.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ export default async function fetchPythPrices(priceFeedIds: string[], assets: As
2323
res.json(),
2424
)
2525
} catch (error) {
26-
console.warn('Primary Pyth API failed, falling back to fallback API')
26+
console.warn('Primary Pyth API failed, falling back to fallback API', error)
2727
}
2828

2929
try {
3030
return await fetchWithTimeout(fallbackUrl.toString(), FETCH_TIMEOUT).then((res) =>
3131
res.json(),
3232
)
3333
} catch (error) {
34-
console.error('Fallback Pyth API also failed')
34+
console.error('Fallback Pyth API also failed', error)
3535
setApiError(fallbackUrl.toString(), error)
3636
}
3737

0 commit comments

Comments
 (0)