mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-13 07:00:06 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dad99557a7 | ||
| c7cc2e5fa4 |
@@ -4,6 +4,7 @@ import axiosCookieJarSupport from 'axios-cookiejar-support'
|
|||||||
import * as tough from 'tough-cookie'
|
import * as tough from 'tough-cookie'
|
||||||
import { prefixMessage } from '@sasjs/utils/error'
|
import { prefixMessage } from '@sasjs/utils/error'
|
||||||
import { RequestClient, throwIfError } from './RequestClient'
|
import { RequestClient, throwIfError } from './RequestClient'
|
||||||
|
import { JobExecutionError } from '../types/errors'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specific request client for SAS9 in Node.js environments.
|
* Specific request client for SAS9 in Node.js environments.
|
||||||
@@ -69,6 +70,8 @@ export class Sas9RequestClient extends RequestClient {
|
|||||||
return this.parseResponse<T>(response)
|
return this.parseResponse<T>(response)
|
||||||
})
|
})
|
||||||
.catch(async (e: any) => {
|
.catch(async (e: any) => {
|
||||||
|
if (e instanceof JobExecutionError) throw e
|
||||||
|
|
||||||
return await this.handleError(
|
return await this.handleError(
|
||||||
e,
|
e,
|
||||||
() =>
|
() =>
|
||||||
|
|||||||
Reference in New Issue
Block a user