1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-14 23:50:06 +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

@@ -884,9 +884,7 @@ export class SASViyaApiClient {
waitForResult, waitForResult,
pollOptions, pollOptions,
printPid printPid
).catch((err) => { )
throw prefixMessage(err, 'Error while executing script. ')
})
} }
/** /**

View File

@@ -346,7 +346,9 @@ export class RequestClient implements HttpClient {
}) })
if (isAuthorizeFormRequired(res?.data as string)) { 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) => { return await callback().catch((err: any) => {