]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/commands/ListDevicesCommand.java
Print stack trace of exception causes in verbose mode
[signal-cli] / src / main / java / org / asamk / signal / commands / ListDevicesCommand.java
index 40f30681d399b0e14f229d41fec27668580ee10b..ad0d3531503c1122abfb1a157b5a06835f58ddca 100644 (file)
@@ -40,8 +40,7 @@ public class ListDevicesCommand implements JsonRpcLocalCommand {
         try {
             devices = m.getLinkedDevices();
         } catch (IOException e) {
-            logger.debug("Failed to get linked devices", e);
-            throw new IOErrorException("Failed to get linked devices: " + e.getMessage());
+            throw new IOErrorException("Failed to get linked devices: " + e.getMessage(), e);
         }
 
         if (outputWriter instanceof PlainTextWriter) {
@@ -71,10 +70,7 @@ public class ListDevicesCommand implements JsonRpcLocalCommand {
         public final long lastSeenTimestamp;
 
         private JsonDevice(
-                final long id,
-                final String name,
-                final long createdTimestamp,
-                final long lastSeenTimestamp
+                final long id, final String name, final long createdTimestamp, final long lastSeenTimestamp
         ) {
             this.id = id;
             this.name = name;