mirror of
https://github.com/sasjs/adapter.git
synced 2025-12-28 08:00:05 +00:00
Compare commits
4 Commits
httpAgentT
...
v3.7.7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b4c0946883 | ||
|
|
efcf3b273c | ||
|
|
761bf8de38 | ||
|
|
5ccfc18a35 |
@@ -208,7 +208,7 @@ export class WebJobExecutor extends BaseJobExecutor {
|
||||
}
|
||||
|
||||
const responseObject = appendExtraResponseAttributes(
|
||||
{ result: jsonResponse },
|
||||
{ result: jsonResponse, log: parsedSasjsServerLog },
|
||||
extraResponseAttributes
|
||||
)
|
||||
resolve(responseObject)
|
||||
|
||||
@@ -635,7 +635,7 @@ const parseError = (data: string) => {
|
||||
if (parts.length > 1) {
|
||||
const storedProcessPath = parts[1].split('<i>')[1].split('</i>')[0]
|
||||
const message = `Stored process not found: ${storedProcessPath}`
|
||||
return new JobExecutionError(404, message, '')
|
||||
return new JobExecutionError(500, message, '')
|
||||
}
|
||||
}
|
||||
} catch (_) {}
|
||||
@@ -649,7 +649,7 @@ const parseError = (data: string) => {
|
||||
if (parts.length > 1) {
|
||||
const log = parts[1].split('<pre>')[1].split('</pre>')[0]
|
||||
const message = `This request completed with errors.`
|
||||
return new JobExecutionError(404, message, log)
|
||||
return new JobExecutionError(500, message, log)
|
||||
}
|
||||
}
|
||||
} catch (_) {}
|
||||
|
||||
Reference in New Issue
Block a user