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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user