mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-06 20:10:05 +00:00
fix(errors): fixed error handling function
This commit is contained in:
@@ -195,9 +195,7 @@ export class RequestClient implements HttpClient {
|
|||||||
}
|
}
|
||||||
),
|
),
|
||||||
debug
|
debug
|
||||||
).catch((err) => {
|
)
|
||||||
throw prefixMessage(err, 'Error while handling error. ')
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -488,7 +486,7 @@ export class RequestClient implements HttpClient {
|
|||||||
else return
|
else return
|
||||||
}
|
}
|
||||||
|
|
||||||
throw e
|
throw prefixMessage(e, 'Error while handling error. ')
|
||||||
}
|
}
|
||||||
|
|
||||||
protected parseResponse<T>(response: AxiosResponse<any>) {
|
protected parseResponse<T>(response: AxiosResponse<any>) {
|
||||||
|
|||||||
Reference in New Issue
Block a user