Business errors differenciated from technical errors in the Lambda runner
This commit is contained in:
@@ -102,7 +102,8 @@ var ApiController = function(app) {
|
||||
|
||||
if (response.StatusCode === 200 && response.Payload && response.Payload !== 'null') {
|
||||
const payload = JSON.parse(response.Payload);
|
||||
if (payload.errorType) {
|
||||
if (payload.status === 'failed') {
|
||||
debug('Failed with error %s', payload.errorMessage);
|
||||
runsDatastore.markAsFailed(run.runId, payload.errorMessage);
|
||||
} else {
|
||||
debug('Success!');
|
||||
|
||||
Reference in New Issue
Block a user