X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/8bc6c0abcbdc70b1049df08712cdeff046f48f5e..b91c162159c7c28d049ceb8889c419791573d3bb:/src/main/java/org/asamk/signal/commands/UnblockCommand.java diff --git a/src/main/java/org/asamk/signal/commands/UnblockCommand.java b/src/main/java/org/asamk/signal/commands/UnblockCommand.java index 46bd9daa..812065bc 100644 --- a/src/main/java/org/asamk/signal/commands/UnblockCommand.java +++ b/src/main/java/org/asamk/signal/commands/UnblockCommand.java @@ -42,7 +42,7 @@ public class UnblockCommand implements JsonRpcLocalCommand { } catch (NotMasterDeviceException e) { throw new UserErrorException("This command doesn't work on linked devices."); } catch (IOException e) { - throw new UnexpectedErrorException("Failed to sync unblock to linked devices: " + e.getMessage()); + throw new UnexpectedErrorException("Failed to sync unblock to linked devices: " + e.getMessage(), e); } } @@ -53,7 +53,7 @@ public class UnblockCommand implements JsonRpcLocalCommand { } catch (GroupNotFoundException e) { logger.warn("Unknown group id: {}", groupId); } catch (IOException e) { - throw new UnexpectedErrorException("Failed to sync unblock to linked devices: " + e.getMessage()); + throw new UnexpectedErrorException("Failed to sync unblock to linked devices: " + e.getMessage(), e); } } }