Skip to content

Commit

Permalink
Fix for Missing argument on fail() of InteractsWithQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio Muñoz committed Nov 8, 2016
1 parent 7b55237 commit 4c4cd03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Illuminate/Queue/InteractsWithQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ public function delete()
/**
* Fail the job from the queue.
*
* @param \Throwable $e
* @return void
*/
public function fail()
public function fail($e)
{
if ($this->job) {
return $this->job->failed();
return $this->job->failed($e);
}
}

Expand Down

0 comments on commit 4c4cd03

Please sign in to comment.