1
0
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:
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 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>) {