Skip to content

Commit bfeb76f

Browse files
committed
Fix handling when cfn-lint throws a stacktrace
1 parent 3f292cb commit bfeb76f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async function main() {
4848
}
4949
if (err) {
5050
result.push(err);
51-
} else {
51+
} else if (result.length > 0) {
5252
result[result.length - 1].message += "\n" + line;
5353
}
5454
return result;

0 commit comments

Comments
 (0)