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:
@@ -884,9 +884,7 @@ export class SASViyaApiClient {
|
|||||||
waitForResult,
|
waitForResult,
|
||||||
pollOptions,
|
pollOptions,
|
||||||
printPid
|
printPid
|
||||||
).catch((err) => {
|
)
|
||||||
throw prefixMessage(err, 'Error while executing script. ')
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user