Log error for fatal load errors

This commit is contained in:
AsamK committed 2022-08-28 16:32:35 +02:00
1 parent adcc88823f
commit 25fb1b08bc
1 file changed
+3
@@ -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();