]> nmode's Git Repositories - signal-cli/commitdiff
Fix error message
authorAsamK <asamk@gmx.de>
Fri, 28 May 2021 16:09:41 +0000 (18:09 +0200)
committerAsamK <asamk@gmx.de>
Fri, 28 May 2021 16:09:41 +0000 (18:09 +0200)
src/main/java/org/asamk/signal/commands/AddDeviceCommand.java

index 83952aa39a1c70eeed5e6a27192f92edc1341976..df46f1a7a7dbcb7688312ac0cb6fe6d995dab756 100644 (file)
@@ -36,7 +36,7 @@ public class AddDeviceCommand implements LocalCommand {
             logger.error("Add device link failed", e);
             throw new IOErrorException("Add device link failed");
         } catch (URISyntaxException e) {
             logger.error("Add device link failed", e);
             throw new IOErrorException("Add device link failed");
         } catch (URISyntaxException e) {
-            throw new UserErrorException("Device link uri has invalid format: {}" + e.getMessage());
+            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.");
         } catch (InvalidKeyException e) {
             logger.error("Add device link failed", e);
             throw new UnexpectedErrorException("Add device link failed.");