Skip to content

Commit 37df917

Browse files
committed
throw an exit code if there are filtered messages left
1 parent 4f02e9e commit 37df917

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cli.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,9 @@ text(process.stdin).then((stdIn) => {
2121
output = filter(output, new RegExp(options.exclude));
2222
}
2323

24+
if (output.length > 0) {
25+
process.exitCode = 1;
26+
}
27+
2428
process.stdout.write(JSON.stringify(output));
2529
});

0 commit comments

Comments
 (0)