Stringify api errors
This commit is contained in:
parent
59bdd20158
commit
e6c45d934b
|
@ -74,7 +74,7 @@ export const createAPIClient = (config: APIClientConfig = {}): APIClient => {
|
||||||
if (json?.message) {
|
if (json?.message) {
|
||||||
message = json.message
|
message = json.message
|
||||||
} else if (json?.error) {
|
} else if (json?.error) {
|
||||||
message = json.error
|
message = JSON.stringify(json.error)
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
|
|
Loading…
Reference in New Issue