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

fix(request-client): return Internal Server Error code in case of Stored Process Error

This commit is contained in:
Krishna Acondy
2021-12-12 20:37:19 +00:00
parent b645d1495b
commit 596c1de5cb

View File

@@ -627,7 +627,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 (_) {}