mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Show better error message when using addDevice on a linked device
This commit is contained in:
parent
6d23eb3bf6
commit
a9f1944636
1 changed files with 2 additions and 0 deletions
|
@ -185,6 +185,8 @@ public class DbusSignalImpl implements Signal {
|
|||
m.addDeviceLink(deviceLinkUrl);
|
||||
} catch (IOException | InvalidDeviceLinkException e) {
|
||||
throw new Error.Failure(e.getClass().getSimpleName() + " Add device link failed. " + e.getMessage());
|
||||
} catch (NotPrimaryDeviceException e) {
|
||||
throw new Error.Failure("This command doesn't work on linked devices.");
|
||||
} catch (URISyntaxException e) {
|
||||
throw new Error.InvalidUri(e.getClass().getSimpleName()
|
||||
+ " Device link uri has invalid format: "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue