1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-09 05:20:05 +00:00

Merge branch 'master' into issue-258

This commit is contained in:
Muhammad Saad
2021-02-25 18:37:35 +05:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -346,7 +346,9 @@ export class RequestClient implements HttpClient {
})
if (isAuthorizeFormRequired(res?.data as string)) {
await this.authorize(res.data as string)
await this.authorize(res.data as string).catch((err) => {
throw prefixMessage(err, 'Error while authorizing request. ')
})
}
return await callback().catch((err: any) => {