Skip to content

Commit

Permalink
Fix handling when cfn-lint throws a stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
Graham42 committed Feb 18, 2021
1 parent 3f292cb commit bfeb76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function main() {
}
if (err) {
result.push(err);
} else {
} else if (result.length > 0) {
result[result.length - 1].message += "\n" + line;
}
return result;
Expand Down

0 comments on commit bfeb76f

Please sign in to comment.