Improve stderr output

This commit is contained in:
AsamK 2020-08-09 15:11:09 +02:00
parent 2c3d222e84
commit 2c5a70cc47
6 changed files with 9 additions and 10 deletions

View file

@ -556,9 +556,7 @@ public class Manager implements Closeable {
for (ContactTokenDetails contact : contacts) {
newE164Members.remove(contact.getNumber());
}
System.err.println("Failed to add members " + Util.join(", ", newE164Members) + " to group: Not registered on Signal");
System.err.println("Aborting…");
System.exit(1);
throw new IOException("Failed to add members " + Util.join(", ", newE164Members) + " to group: Not registered on Signal");
}
g.addMembers(members);