@sasjs/adapter 4.1.5 → 4.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -84,5 +84,5 @@
84
84
  "https": "1.0.0",
85
85
  "tough-cookie": "4.0.0"
86
86
  },
87
- "version": "4.1.5"
87
+ "version": "4.1.6"
88
88
  }
@@ -4,6 +4,7 @@ import axiosCookieJarSupport from 'axios-cookiejar-support'
4
4
  import * as tough from 'tough-cookie'
5
5
  import { prefixMessage } from '@sasjs/utils/error'
6
6
  import { RequestClient, throwIfError } from './RequestClient'
7
+ import { JobExecutionError } from '../types/errors'
7
8
 
8
9
  /**
9
10
  * Specific request client for SAS9 in Node.js environments.
@@ -69,6 +70,8 @@ export class Sas9RequestClient extends RequestClient {
69
70
  return this.parseResponse<T>(response)
70
71
  })
71
72
  .catch(async (e: any) => {
73
+ if (e instanceof JobExecutionError) throw e
74
+
72
75
  return await this.handleError(
73
76
  e,
74
77
  () =>