}
} catch (DBusException e) {
logger.error("Dbus client failed", e);
- throw new UnexpectedErrorException("Dbus client failed");
+ throw new UnexpectedErrorException("Dbus client failed", e);
}
while (true) {
try {
returnOnTimeout = false;
timeout = 3600;
}
- boolean ignoreAttachments = ns.getBoolean("ignore-attachments");
+ boolean ignoreAttachments = Boolean.TRUE.equals(ns.getBoolean("ignore-attachments"));
try {
final var handler = outputWriter instanceof JsonWriter ? new JsonReceiveMessageHandler(m,
(JsonWriter) outputWriter) : new ReceiveMessageHandler(m, (PlainTextWriter) outputWriter);
ignoreAttachments,
handler);
} catch (IOException e) {
- throw new IOErrorException("Error while receiving messages: " + e.getMessage());
- } catch (InterruptedException ignored) {
+ throw new IOErrorException("Error while receiving messages: " + e.getMessage(), e);
}
}
}