1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-08 13:00:05 +00:00

feat: service not found error handling for SAS9

This commit is contained in:
Mihajlo Medjedovic
2020-11-09 18:19:39 +01:00
parent d223e83c60
commit 4a4618dd32
2 changed files with 15 additions and 8 deletions

View File

@@ -1107,6 +1107,11 @@ export default class SASjs {
}
} else {
this.updateUsername(responseText)
if (responseText.includes('The requested URL /SASStoredProcess/do/ was not found on this server.') ||
responseText.includes('Stored process not found')) {
reject(new ErrorResponse('Service not found on the server', {service: sasJob}, responseText))
}
try {
const parsedJson = JSON.parse(responseText)
resolve(parsedJson)