mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-02-23 14:44:31 +01:00
Improve error handling of getUserStatus command for invalid phonen numbers
This commit is contained in:
@@ -105,7 +105,7 @@ public class RecipientHelper {
|
||||
.getRegisteredUsers(ServiceConfig.getIasKeyStore(),
|
||||
numbers,
|
||||
serviceEnvironmentConfig.getCdsMrenclave());
|
||||
} catch (Quote.InvalidQuoteFormatException | UnauthenticatedQuoteException | SignatureException | UnauthenticatedResponseException | InvalidKeyException e) {
|
||||
} catch (Quote.InvalidQuoteFormatException | UnauthenticatedQuoteException | SignatureException | UnauthenticatedResponseException | InvalidKeyException | NumberFormatException e) {
|
||||
throw new IOException(e);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,11 @@ public class GetUserStatusCommand implements JsonRpcLocalCommand {
|
||||
try {
|
||||
registered = m.areUsersRegistered(new HashSet<>(ns.getList("recipient")));
|
||||
} catch (IOException e) {
|
||||
throw new IOErrorException("Unable to check if users are registered", e);
|
||||
throw new IOErrorException("Unable to check if users are registered: "
|
||||
+ e.getMessage()
|
||||
+ " ("
|
||||
+ e.getClass().getSimpleName()
|
||||
+ ")", e);
|
||||
}
|
||||
|
||||
// Output
|
||||
|
||||
Reference in New Issue
Block a user