This commit is contained in:
Adria Navarro 2025-01-09 12:40:23 +01:00
parent e6c45d934b
commit 2cbf7a47c1
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ export const createAPIClient = (config: APIClientConfig = {}): APIClient => {
return await handler(callConfig)
} catch (error) {
if (config?.onError) {
config.onError(error)
config.onError(error as APIError)
}
throw error
}