1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 09:24:35 +00:00

style: lint

This commit is contained in:
Mihajlo Medjedovic
2020-11-09 18:24:10 +01:00
parent 4a4618dd32
commit c7b0821081
2 changed files with 14 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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)