Skip to content

Commit

Permalink
Add missing sprintf statement
Browse files Browse the repository at this point in the history
  • Loading branch information
csdougliss committed Dec 4, 2018
1 parent 488441f commit d4717ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ protected function _runJob($scheduledTime, $currentTime, $jobConfig, $schedule,

if (!isset($jobConfig['instance'], $jobConfig['method'])) {
$schedule->setStatus(Schedule::STATUS_ERROR);
throw new \Exception('No callbacks found for cron job %s', $jobCode);
throw new \Exception(sprintf('No callbacks found for cron job %s', $jobCode));
}
$model = $this->_objectManager->create($jobConfig['instance']);
$callback = [$model, $jobConfig['method']];
Expand Down

0 comments on commit d4717ae

Please sign in to comment.