We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f6ad66 commit f23e10aCopy full SHA for f23e10a
src/util/error.ts
@@ -1,4 +1,4 @@
1
-import axios, { AxiosError } from 'axios';
+import { AxiosError, isAxiosError } from 'axios';
2
import {
3
DELEGATE_TO_FRONTEND_CODE,
4
IntegrationErrorType,
@@ -12,7 +12,7 @@ export const throwAndDelegateError = (
12
apiKey: string | undefined,
13
logMessage?: string,
14
) => {
15
- const errorMessage = axios.isAxiosError(error)
+ const errorMessage = isAxiosError(error)
16
? error.response?.data
17
? JSON.stringify(error.response?.data)
18
: error.message
0 commit comments