Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions lib/renderer/states/tasks-failed.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ module.exports = function (deployment) {
let extraMsg = "\nFailure Reasons\n";
deployment.tasksFailedFull.forEach((task) => {
extraMsg += `\nTask: ${task.taskArn}\nReason: ${task.stoppedReason}\n`

// The above stopped reason is often generic for the whole task, and doesn't
// give a lot of context about why an individual container stopped. So let's
// dig into the individual containers and print their own stopped reasons as well.
task.containers.forEach((container) => {
if (container.exitCode !== 0) {
extraMsg += ` Container: ${container.name} (${container.lastStatus})\n`
extraMsg += ` Exit code: ${container.exitCode}\n`

if (container.reason) {
extraMsg += ` Reason: ${container.reason}\n`
}
}
})
});

return {
Expand Down
Loading