Stringify api errors

This commit is contained in:
Adria Navarro 2025-01-09 12:39:44 +01:00
parent 59bdd20158
commit e6c45d934b
1 changed files with 1 additions and 1 deletions

View File

@ -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