diff --git a/src/request/RequestClient.ts b/src/request/RequestClient.ts index a92fd5e..98a7fd7 100644 --- a/src/request/RequestClient.ts +++ b/src/request/RequestClient.ts @@ -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) => {