mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 04:22:35 +01:00
pbot-vm: prevent [Exit 1] output with compiler errors
This commit is contained in:
parent
3e2204a6b0
commit
46ccc1fb70
@ -60,6 +60,12 @@ sub preprocess {
|
|||||||
if ($self->{cmdline} =~ m/--(?:version|analyze)/) {
|
if ($self->{cmdline} =~ m/--(?:version|analyze)/) {
|
||||||
$self->{done} = 1;
|
$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 {
|
sub postprocess {
|
||||||
|
Loading…
Reference in New Issue
Block a user