]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/commands/RemoveDeviceCommand.java
Print stack trace of exception causes in verbose mode
[signal-cli] / src / main / java / org / asamk / signal / commands / RemoveDeviceCommand.java
index 1f47e2b30486a39a4cbb04f5ced8103816dd72eb..d67cc5eafda8e126363268cb500ab1a177daddf5 100644 (file)
@@ -34,7 +34,7 @@ public class RemoveDeviceCommand implements JsonRpcLocalCommand {
             int deviceId = ns.getInt("device-id");
             m.removeLinkedDevices(deviceId);
         } catch (IOException e) {
-            throw new IOErrorException("Error while removing device: " + e.getMessage());
+            throw new IOErrorException("Error while removing device: " + e.getMessage(), e);
         }
     }
 }