Skip to content

Commit

Permalink
Fix outdated error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Jan 19, 2024
1 parent 39f8987 commit 90a4f0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ManagedScheduler.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function runJob($id, bool $force = true, ?RunParameters $parameters = nul
->withProblem('Job is not registered by scheduler.')
->with(
'Tip',
"Inspect keys in 'Scheduler->getScheduledJobs()' or run command 'scheduler:list' to find correct job ID.",
"Inspect keys in 'Scheduler->getJobSchedules()' or run command 'scheduler:list' to find correct job ID.",
);

throw InvalidArgument::create()
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Command/RunJobCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function testNonExistentJob(): void
<<<'MSG'
Context: Running job with ID 'id'
Problem: Job is not registered by scheduler.
Tip: Inspect keys in 'Scheduler->getScheduledJobs()' or run command
Tip: Inspect keys in 'Scheduler->getJobSchedules()' or run command
'scheduler:list' to find correct job ID.
MSG,
);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/SimpleSchedulerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function testNoJobs(): void
<<<'MSG'
Context: Running job with ID '0'
Problem: Job is not registered by scheduler.
Tip: Inspect keys in 'Scheduler->getScheduledJobs()' or run command
Tip: Inspect keys in 'Scheduler->getJobSchedules()' or run command
'scheduler:list' to find correct job ID.
MSG,
);
Expand Down

0 comments on commit 90a4f0f

Please sign in to comment.