1
0
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:
Yury Shkoda
2021-12-20 10:57:53 +03:00
parent 42aec96410
commit 098e7f8590

View File

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