mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Print stack trace of exception causes in verbose mode
This commit is contained in:
parent
e3c37a0239
commit
2044a7d7a5
32 changed files with 66 additions and 60 deletions
|
@ -42,12 +42,12 @@ public class AddDeviceCommand implements JsonRpcLocalCommand {
|
|||
m.addDeviceLink(new URI(ns.getString("uri")));
|
||||
} catch (IOException e) {
|
||||
logger.error("Add device link failed", e);
|
||||
throw new IOErrorException("Add device link failed");
|
||||
throw new IOErrorException("Add device link failed", e);
|
||||
} catch (URISyntaxException e) {
|
||||
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.");
|
||||
throw new UnexpectedErrorException("Add device link failed.", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue