3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

ProcessManager: remove PBot:: prefix from timed-out message

This commit is contained in:
Pragmatic Software 2020-02-16 16:49:10 -08:00
parent 891a586409
commit 64ea719042

View File

@ -180,7 +180,7 @@ sub execute_process {
# execute the provided subroutine, results are stored in $stuff # execute the provided subroutine, results are stored in $stuff
eval { eval {
local $SIG{ALRM} = sub { die "PBot::Process `$stuff->{commands}->[0]` timed-out" }; local $SIG{ALRM} = sub { die "Process `$stuff->{commands}->[0]` timed-out" };
alarm $timeout; alarm $timeout;
$subref->($stuff); $subref->($stuff);
die if $@; die if $@;