Skip to content

Commit

Permalink
be clearer about what the failures field is
Browse files Browse the repository at this point in the history
  • Loading branch information
liath committed Jun 20, 2024
1 parent 27658b2 commit 3cfa6d4
Showing 1 changed file with 1 addition and 1 deletion.
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 && taskDefinition.failures.length) {
if (taskDefinition.failures && taskDefinition.failures.length > 0) {
throw new Error("ECS RunTask returned failure messages", { cause: taskDefinition.failures });
}

Expand Down

0 comments on commit 3cfa6d4

Please sign in to comment.