mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Print stack trace of exception causes in verbose mode
This commit is contained in:
parent
e3c37a0239
commit
2044a7d7a5
32 changed files with 66 additions and 60 deletions
|
@ -126,7 +126,7 @@ public class ReceiveCommand implements ExtendedDbusCommand, LocalCommand {
|
|||
}
|
||||
} 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 {
|
||||
|
@ -157,7 +157,7 @@ public class ReceiveCommand implements ExtendedDbusCommand, LocalCommand {
|
|||
ignoreAttachments,
|
||||
handler);
|
||||
} catch (IOException e) {
|
||||
throw new IOErrorException("Error while receiving messages: " + e.getMessage());
|
||||
throw new IOErrorException("Error while receiving messages: " + e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue