Skip to content

Commit

Permalink
Fix borked failures check (#95)
Browse files Browse the repository at this point in the history
* Fix borked failures check

* Update package version and pull some dep updates to appease audit

* be clearer about what the failures field is
  • Loading branch information
liath committed Jun 20, 2024
1 parent 5af5845 commit b8891bb
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 89 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module.exports = function (options, cb) {
return taskRunner.runPromisified(params);
})
.then((taskDefinition) => {
if (taskDefinition.failures) {
if (taskDefinition.failures && taskDefinition.failures.length > 0) {
throw new Error("ECS RunTask returned failure messages", { cause: taskDefinition.failures });
}

Expand Down
Loading

0 comments on commit b8891bb

Please sign in to comment.