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