diff --git a/WorkerSingle.php b/WorkerSingle.php index d203baf..460f391 100644 --- a/WorkerSingle.php +++ b/WorkerSingle.php @@ -216,12 +216,11 @@ public function perform(\Resque_Job $job) \Resque_Event::trigger('afterFork', $job); $job->perform(); } - catch (\Error $e) - { + catch (\Error $e) { $this->logger->log(LogLevel::CRITICAL, '{job} has failed {stack}', array('job' => $job, 'stack' => $e)); $job->fail($e); return; - } + } catch(\Exception $e) { $this->logger->log(LogLevel::CRITICAL, '{job} has failed {stack}', array('job' => $job, 'stack' => $e)); $job->fail($e);