Skip to content

Commit d4717ae

Browse files
committed
Add missing sprintf statement
1 parent 488441f commit d4717ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Cron/Observer/ProcessCronQueueObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ protected function _runJob($scheduledTime, $currentTime, $jobConfig, $schedule,
298298

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

0 commit comments

Comments
 (0)