mirror of
https://github.com/sasjs/adapter.git
synced 2025-12-11 09:24:35 +00:00
style: lint
This commit is contained in:
16
src/SASjs.ts
16
src/SASjs.ts
@@ -1107,9 +1107,19 @@ 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))
|
||||
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 {
|
||||
|
||||
@@ -3,7 +3,7 @@ export class ErrorResponse {
|
||||
|
||||
constructor(message: string, details?: any, raw?: any) {
|
||||
let detailsString = details
|
||||
|
||||
|
||||
if (typeof details !== 'object') {
|
||||
try {
|
||||
detailsString = JSON.parse(details)
|
||||
|
||||
Reference in New Issue
Block a user