Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
markitosgv authored Mar 16, 2017
1 parent fd02220 commit b478e44
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions WorkerSingle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b478e44

Please sign in to comment.