mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-18 14:30:40 +01:00
ProcessManager: remove PBot:: prefix from timed-out message
This commit is contained in:
parent
891a586409
commit
64ea719042
@ -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 $@;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user