From 5495ee80ab1b4e5e346d3c0f1fab671f18956e2b Mon Sep 17 00:00:00 2001 From: Markus Podar Date: Fri, 30 Oct 2020 22:19:34 +0100 Subject: [PATCH] Improve wording of error message (#918) See discussion outcome in https://github.com/laravel/horizon/pull/914#issuecomment-717254110 --- src/Console/ContinueSupervisorCommand.php | 2 +- src/Console/PauseSupervisorCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Console/ContinueSupervisorCommand.php b/src/Console/ContinueSupervisorCommand.php index bcbaa7f8..793bd6ad 100644 --- a/src/Console/ContinueSupervisorCommand.php +++ b/src/Console/ContinueSupervisorCommand.php @@ -46,7 +46,7 @@ public function handle(SupervisorRepository $supervisors) $this->info("Sending CONT Signal To Process: {$processId}"); if (! posix_kill($processId, SIGCONT)) { - $this->error("Failed to kill process: {$processId} (".posix_strerror(posix_get_last_error()).')'); + $this->error("Failed to send CONT signal to process: {$processId} (".posix_strerror(posix_get_last_error()).')'); } } } diff --git a/src/Console/PauseSupervisorCommand.php b/src/Console/PauseSupervisorCommand.php index 95e5766b..c03e0c2c 100644 --- a/src/Console/PauseSupervisorCommand.php +++ b/src/Console/PauseSupervisorCommand.php @@ -46,7 +46,7 @@ public function handle(SupervisorRepository $supervisors) $this->info("Sending USR2 Signal To Process: {$processId}"); if (! posix_kill($processId, SIGUSR2)) { - $this->error("Failed to kill process: {$processId} (".posix_strerror(posix_get_last_error()).')'); + $this->error("Failed to send USR2 signal to process: {$processId} (".posix_strerror(posix_get_last_error()).')'); } } }