Skip to content

Commit

Permalink
[INFREQ-643] Warn on RunTask failures
Browse files Browse the repository at this point in the history
  • Loading branch information
liath committed Jun 12, 2024
1 parent cfe87bb commit 566d2b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ module.exports = function (options, cb) {
return taskRunner.runPromisified(params);
})
.then((taskDefinition) => {
if (taskDefinition.failures) {
throw new Error("ECS RunTask returned failure messages", { cause: taskDefinition.failures });
}

const taskArn = taskDefinition.tasks[0].taskArn;
const taskId = taskArn.substring(taskArn.lastIndexOf('/') + 1);
const formatter = new FormatStream();
Expand Down

0 comments on commit 566d2b9

Please sign in to comment.