Skip to content

Commit

Permalink
Fix #839: Throwable and Error should not be caught (#840)
Browse files Browse the repository at this point in the history
* Fix #839: Throwable and Error should not be caught
  • Loading branch information
jandusil authored May 31, 2024
1 parent 31359d2 commit 115a1b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ private PushSendingCallback createPushSendingCallback(final Mode mode, final Pus
}
}
platformResult.setTotal(platformResult.getTotal() + 1);
} catch (Throwable t) {
logger.error("System error when sending notification: {}", t.getMessage(), t);
} catch (Exception e) {
logger.error("System error when sending notification: {}", e.getMessage(), e);
} finally {
arriveAndDeregisterPhaserForMode(phaser, mode);
}
Expand Down

0 comments on commit 115a1b9

Please sign in to comment.