mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-19 07:04:21 +01:00
Print stack trace of exception causes in verbose mode
This commit is contained in:
@@ -32,9 +32,9 @@ public class RemovePinCommand implements JsonRpcLocalCommand {
|
||||
try {
|
||||
m.setRegistrationLockPin(Optional.absent());
|
||||
} catch (UnauthenticatedResponseException e) {
|
||||
throw new UnexpectedErrorException("Remove pin failed with unauthenticated response: " + e.getMessage());
|
||||
throw new UnexpectedErrorException("Remove pin failed with unauthenticated response: " + e.getMessage(), e);
|
||||
} catch (IOException e) {
|
||||
throw new IOErrorException("Remove pin error: " + e.getMessage());
|
||||
throw new IOErrorException("Remove pin error: " + e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user