Modules: minor syntax formatting correction

This commit is contained in:
Pragmatic Software 2021-02-07 13:41:22 -08:00
parent c400ffda10
commit 80a4060dab
1 changed files with 5 additions and 2 deletions

View File

@ -114,8 +114,11 @@ sub launch_module {
if ($@) {
my $error = $@;
if ($error =~ m/timeout on timer/) { ($exitval, $stdout, $stderr) = (-1, "$context->{trigger}: timed-out", ''); }
else { ($exitval, $stdout, $stderr) = (-1, '', $error); }
if ($error =~ m/timeout on timer/) {
($exitval, $stdout, $stderr) = (-1, "$context->{trigger}: timed-out", '');
} else {
($exitval, $stdout, $stderr) = (-1, '', $error);
}
}
if (length $stderr) {