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:
parent
3e2204a6b0
commit
46ccc1fb70
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user