X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/af292d8f0ea897ea13470489d51c40acca50fc3e..2044a7d7a58ada7ca1e67a80012e3ffdaf86c88c:/src/main/java/org/asamk/signal/commands/AddDeviceCommand.java diff --git a/src/main/java/org/asamk/signal/commands/AddDeviceCommand.java b/src/main/java/org/asamk/signal/commands/AddDeviceCommand.java index 1616a01f..e609ec1e 100644 --- a/src/main/java/org/asamk/signal/commands/AddDeviceCommand.java +++ b/src/main/java/org/asamk/signal/commands/AddDeviceCommand.java @@ -42,12 +42,12 @@ public class AddDeviceCommand implements JsonRpcLocalCommand { m.addDeviceLink(new URI(ns.getString("uri"))); } catch (IOException e) { logger.error("Add device link failed", e); - throw new IOErrorException("Add device link failed"); + throw new IOErrorException("Add device link failed", e); } catch (URISyntaxException e) { throw new UserErrorException("Device link uri has invalid format: " + e.getMessage()); } catch (InvalidKeyException e) { logger.error("Add device link failed", e); - throw new UnexpectedErrorException("Add device link failed."); + throw new UnexpectedErrorException("Add device link failed.", e); } } }