Skip to content

Commit

Permalink
Fixes problem with rendering error in worker
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed Jun 10, 2022
1 parent 6499789 commit 3a666bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Commands/ScheduleRunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function perform(

$this->info(
\sprintf(
'[%s] Running scheduled job: %s',
'[%s] Running scheduled: `%s`',
\date('c'),
$job->getDescription() ?? $job->getSystemDescription()
)
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/ScheduleWorkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function perform(
$runner->run(
'schedule:run',
function (string $message) {
$this->line($message, 'green');
$this->writeln($message);
},
function (string $message) {
$this->error($message);
Expand Down
2 changes: 1 addition & 1 deletion src/EveryMinuteCommandRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function run(string $command, \Closure $onSuccess = null, \Closure $onErr
}

if (! empty($errorOutput)) {
$onError($output);
$onError($errorOutput);
}

if (! $execution->isRunning()) {
Expand Down

0 comments on commit 3a666bb

Please sign in to comment.