mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-16 08:30:07 +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 {
|
} else {
|
||||||
this.updateUsername(responseText)
|
this.updateUsername(responseText)
|
||||||
if (responseText.includes('The requested URL /SASStoredProcess/do/ was not found on this server.') ||
|
if (
|
||||||
responseText.includes('Stored process not found')) {
|
responseText.includes(
|
||||||
reject(new ErrorResponse('Service not found on the server', {service: sasJob}, responseText))
|
'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 {
|
try {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ export class ErrorResponse {
|
|||||||
|
|
||||||
constructor(message: string, details?: any, raw?: any) {
|
constructor(message: string, details?: any, raw?: any) {
|
||||||
let detailsString = details
|
let detailsString = details
|
||||||
|
|
||||||
if (typeof details !== 'object') {
|
if (typeof details !== 'object') {
|
||||||
try {
|
try {
|
||||||
detailsString = JSON.parse(details)
|
detailsString = JSON.parse(details)
|
||||||
|
|||||||
Reference in New Issue
Block a user