Log error for fatal load errors

This commit is contained in:
AsamK 2022-08-28 16:32:35 +02:00
parent adcc88823f
commit 25fb1b08bc

View file

@ -65,6 +65,9 @@ public class SignalAccountFiles {
} catch (NotRegisteredException | IOException | AccountCheckException e) { } catch (NotRegisteredException | IOException | AccountCheckException e) {
logger.warn("Ignoring {}: {} ({})", a.number(), e.getMessage(), e.getClass().getSimpleName()); logger.warn("Ignoring {}: {} ({})", a.number(), e.getMessage(), e.getClass().getSimpleName());
return null; return null;
} catch (Throwable e) {
logger.error("Failed to load {}: {} ({})", a.number(), e.getMessage(), e.getClass().getSimpleName());
throw e;
} }
}).filter(Objects::nonNull).toList(); }).filter(Objects::nonNull).toList();