- logger.error("Add device link failed", e);
- throw new UserErrorException("Add device link failed.", e);
+ logger.error("Invalid device link");
+ throw new UserErrorException("Invalid device link", e);
+ } catch (NotPrimaryDeviceException e) {
+ throw new UserErrorException("This command doesn't work on linked devices.");