Skip to content

Commit b182131

Browse files
authored
Debug
1 parent cc55281 commit b182131

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ function cleanNullKeys(obj) {
6767

6868
function removeIgnoredAttributes(taskDef) {
6969
for (var attribute of IGNORED_TASK_DEFINITION_ATTRIBUTES) {
70+
core.debug(attribute)
7071
if (taskDef[attribute]) {
7172
core.warning(`Ignoring property '${attribute}' in the task definition file. ` +
7273
'This property is returned by the Amazon ECS DescribeTaskDefinition API and may be shown in the ECS console, ' +
@@ -140,9 +141,9 @@ async function run() {
140141
try {
141142
registerResponse = await ecs.registerTaskDefinition(taskDefContents).promise();
142143
} catch (error) {
143-
core.setFailed("Failed to register task definition in ECS: " + error.message);
144144
core.debug("Task definition contents:");
145145
core.debug(JSON.stringify(taskDefContents, undefined, 4));
146+
core.setFailed("Failed to register task definition in ECS: " + error.message);
146147
throw(error);
147148
}
148149
const taskDefArn = registerResponse.taskDefinition.taskDefinitionArn;

0 commit comments

Comments
 (0)