mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-14 11:24:20 +01:00
Print stack trace of exception causes in verbose mode
This commit is contained in:
@@ -35,9 +35,10 @@ public class SetPinCommand implements JsonRpcLocalCommand {
|
||||
var registrationLockPin = ns.getString("pin");
|
||||
m.setRegistrationLockPin(Optional.of(registrationLockPin));
|
||||
} catch (UnauthenticatedResponseException e) {
|
||||
throw new UnexpectedErrorException("Set pin error failed with unauthenticated response: " + e.getMessage());
|
||||
throw new UnexpectedErrorException("Set pin error failed with unauthenticated response: " + e.getMessage(),
|
||||
e);
|
||||
} catch (IOException e) {
|
||||
throw new IOErrorException("Set pin error: " + e.getMessage());
|
||||
throw new IOErrorException("Set pin error: " + e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user