Skip to content

Commit

Permalink
https://github.com/mage2pro/core/issues/311
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Aug 2, 2023
1 parent 57ff10d commit 7055563
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Cron/Plugin/Console/Command/CronCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ final class CronCommand {
*/
function aroundRun(Sb $sb, \Closure $f, II $i, IO $o):int {
try {return $f($i, $o);}
catch (\Exception $e) {
# 2023-08-02 "Treat `\Throwable` similar to `\Exception`": https://github.com/mage2pro/core/issues/311
catch (\Throwable $th) {
# 2023-07-25
# I intentionally do not pass Cron errors to Sentry
# because I afraid that they could be too numerous in some third-party websites.
df_log_l($this, $e);
throw $e;
df_log_l($this, $th);
throw $th;
}
}
}

0 comments on commit 7055563

Please sign in to comment.