]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/commands/BlockCommand.java
Refactor NoteToSelf to singleton class
[signal-cli] / src / main / java / org / asamk / signal / commands / BlockCommand.java
index 77a622b1b8fcdc4f4d1034cdbb15c44ea163d3d8..5394022ecbe53acc77522f3b482857d769974a22 100644 (file)
@@ -43,7 +43,7 @@ public class BlockCommand implements JsonRpcLocalCommand {
             } catch (NotMasterDeviceException e) {
                 throw new UserErrorException("This command doesn't work on linked devices.");
             } catch (IOException e) {
             } catch (NotMasterDeviceException e) {
                 throw new UserErrorException("This command doesn't work on linked devices.");
             } catch (IOException e) {
-                throw new UnexpectedErrorException("Failed to sync block to linked devices: " + e.getMessage());
+                throw new UnexpectedErrorException("Failed to sync block to linked devices: " + e.getMessage(), e);
             }
         }
 
             }
         }
 
@@ -55,7 +55,7 @@ public class BlockCommand implements JsonRpcLocalCommand {
                 } catch (GroupNotFoundException e) {
                     logger.warn("Group not found {}: {}", groupId.toBase64(), e.getMessage());
                 } catch (IOException e) {
                 } catch (GroupNotFoundException e) {
                     logger.warn("Group not found {}: {}", groupId.toBase64(), e.getMessage());
                 } catch (IOException e) {
-                    throw new UnexpectedErrorException("Failed to sync block to linked devices: " + e.getMessage());
+                    throw new UnexpectedErrorException("Failed to sync block to linked devices: " + e.getMessage(), e);
                 }
             }
         }
                 }
             }
         }