3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 19:22:40 +01:00

pbot-vm: prevent [Exit 1] output with compiler errors

This commit is contained in:
Pragmatic Software 2022-03-06 14:07:28 -08:00
parent 3e2204a6b0
commit 46ccc1fb70

View File

@ -60,6 +60,12 @@ sub preprocess {
if ($self->{cmdline} =~ m/--(?:version|analyze)/) {
$self->{done} = 1;
}
# set done instead of error to prevent "[Exit 1]" output for compiler error messages
if ($self->{error}) {
$self->{error} = 0;
$self->{done} = 1;
}
}
sub postprocess {