Showing
2 changed files
with
2 additions
and
2 deletions
... | ... | @@ -131,7 +131,7 @@ const transform: AxiosTransform = { |
131 | 131 | responseInterceptorsCatch: (_axiosInstance: AxiosInstance, error: any) => { |
132 | 132 | const { response, code, message, config } = error || {} |
133 | 133 | const errorMessageMode = config?.requestOptions?.errorMessageMode || 'none' |
134 | - const msg: string = response?.data?.message ?? '' | |
134 | + const msg: string = response?.data?.message || response?.data || '' | |
135 | 135 | const err: string = error?.toString?.() ?? '' |
136 | 136 | let errMessage = '' |
137 | 137 | if (axios.isCancel(error)) | ... | ... |