diff --git a/src/tasks/SeederTask.php b/src/tasks/SeederTask.php index 256c00e..8611157 100644 --- a/src/tasks/SeederTask.php +++ b/src/tasks/SeederTask.php @@ -92,11 +92,13 @@ public static function setFixtureFile($fixtureFile) /** * @param HTTPRequest $request * @throws \Psr\Container\NotFoundExceptionInterface + * @return null */ public function run($request) { if (Director::isLive()) { - Debug::message('DO NOT RUN ME ON LIVE ENVIRONMENTS', false);exit; + Debug::message('DO NOT RUN ME ON LIVE ENVIRONMENTS', false); + return; } switch ($request->getVar('type')) {