mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Prevent printing stack trace for unregistered users
This commit is contained in:
parent
22add1cbee
commit
477e6516ed
1 changed files with 7 additions and 2 deletions
|
@ -51,7 +51,11 @@ public class RecipientHelper {
|
|||
final ACI aci;
|
||||
try {
|
||||
aci = getRegisteredUser(number);
|
||||
} catch (UnregisteredRecipientException | IOException e) {
|
||||
} catch (UnregisteredRecipientException e) {
|
||||
logger.warn("Failed to get uuid for e164 number: {}", number);
|
||||
// Return SignalServiceAddress with unknown UUID
|
||||
return address.toSignalServiceAddress();
|
||||
} catch (IOException e) {
|
||||
logger.warn("Failed to get uuid for e164 number: {}", number, e);
|
||||
// Return SignalServiceAddress with unknown UUID
|
||||
return address.toSignalServiceAddress();
|
||||
|
@ -106,7 +110,8 @@ public class RecipientHelper {
|
|||
.getRegisteredUsers(ServiceConfig.getIasKeyStore(),
|
||||
numbers,
|
||||
serviceEnvironmentConfig.getCdsMrenclave());
|
||||
} catch (Quote.InvalidQuoteFormatException | UnauthenticatedQuoteException | SignatureException | UnauthenticatedResponseException | InvalidKeyException | NumberFormatException e) {
|
||||
} catch (Quote.InvalidQuoteFormatException | UnauthenticatedQuoteException | SignatureException |
|
||||
UnauthenticatedResponseException | InvalidKeyException | NumberFormatException e) {
|
||||
throw new IOException(e);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue