Skip to content

Commit

Permalink
MAGETWO-52000: [Github][PR]impossible to see what is wrong with cron …
Browse files Browse the repository at this point in the history
…- unhelpful error message #3189

- adding check in case all caches are already disabled.
  • Loading branch information
mazhalai committed May 14, 2016
1 parent 760cb23 commit 4ab3aa9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions setup/src/Magento/Setup/Model/UpdaterTaskCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,13 @@ public function createUpdaterTasks(array $postPayload)
}
}

$errorMessage .= $this->updater->createUpdaterTask(
[],
\Magento\Setup\Model\Cron\JobFactory::JOB_ENABLE_CACHE,
[implode(' ', $enabledCaches)]
);
if (!empty($enabledCaches)) {
$errorMessage .= $this->updater->createUpdaterTask(
[],
\Magento\Setup\Model\Cron\JobFactory::JOB_ENABLE_CACHE,
[implode(' ', $enabledCaches)]
);
}

return $errorMessage;
}
Expand Down

0 comments on commit 4ab3aa9

Please sign in to comment.