3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-23 04:19:27 +01:00

Modules: minor syntax formatting correction

This commit is contained in:
Pragmatic Software 2021-02-07 13:41:22 -08:00
parent c400ffda10
commit 80a4060dab

View File

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