Skip to content

Commit

Permalink
fix(request-client): return Internal Server Error code in case of Sto…
Browse files Browse the repository at this point in the history
…red Process Error
  • Loading branch information
krishna-acondy committed Dec 12, 2021
1 parent b645d14 commit 596c1de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request/RequestClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (_) {}
Expand Down

1 comment on commit 596c1de

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Total coverage

Status Category Percentage Covered / Total
🔴 Statements 58.03% 1605/2766
🔴 Branches 39.16% 551/1407
🔴 Functions 45.63% 230/504
🟡 Lines 67.03% 2568/3831

Status of coverage: 🟢 - ok, 🟡 - slightly more than threshold, 🔴 - under the threshold

Report generated by 🧪jest coverage report action from 596c1de

Please sign in to comment.