Skip to content

Commit

Permalink
catching wider range of errors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondřej Tölg committed Nov 29, 2021
1 parent 51c5fa3 commit a652391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cronner/Cronner.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function __construct(
$this->criticalSection = $criticalSection;
$this->setMaxExecutionTime($maxExecutionTime);
$this->setSkipFailedTask($skipFailedTask);
$this->onTaskError[] = function (Cronner $cronner, Exception $exception) {
$this->onTaskError[] = function (Cronner $cronner, Throwable $exception) {
Debugger::log($exception, Debugger::ERROR);
};
}
Expand Down

0 comments on commit a652391

Please sign in to comment.