From 25fb1b08bcc2fef137ba786cb267dea389e177dd Mon Sep 17 00:00:00 2001 From: AsamK Date: Sun, 28 Aug 2022 16:32:35 +0200 Subject: [PATCH] Log error for fatal load errors --- .../main/java/org/asamk/signal/manager/SignalAccountFiles.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/main/java/org/asamk/signal/manager/SignalAccountFiles.java b/lib/src/main/java/org/asamk/signal/manager/SignalAccountFiles.java index 95fd453d..305b061d 100644 --- a/lib/src/main/java/org/asamk/signal/manager/SignalAccountFiles.java +++ b/lib/src/main/java/org/asamk/signal/manager/SignalAccountFiles.java @@ -65,6 +65,9 @@ public class SignalAccountFiles { } catch (NotRegisteredException | IOException | AccountCheckException e) { logger.warn("Ignoring {}: {} ({})", a.number(), e.getMessage(), e.getClass().getSimpleName()); return null; + } catch (Throwable e) { + logger.error("Failed to load {}: {} ({})", a.number(), e.getMessage(), e.getClass().getSimpleName()); + throw e; } }).filter(Objects::nonNull).toList();