From b478e44035be57f24e4a00c896a1c5ef90c7ccf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20G=C3=B3mez=20Vilches?= Date: Thu, 16 Mar 2017 10:49:08 +0100 Subject: [PATCH] Fix style --- WorkerSingle.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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);