) throws CommandException {
final var groupId = CommandUtil.getGroupId(ns.getString("group-id"));
- var groupAdmins = CommandUtil.getSingleRecipientIdentifiers(ns.getList("admin"), m.getUsername());
+ var groupAdmins = CommandUtil.getSingleRecipientIdentifiers(ns.getList("admin"), m.getSelfNumber());
try {
try {
m.deleteGroup(groupId);
}
} catch (IOException e) {
- throw new IOErrorException("Failed to send message: " + e.getMessage());
+ throw new IOErrorException("Failed to send message: "
+ + e.getMessage()
+ + " ("
+ + e.getClass().getSimpleName()
+ + ")", e);
} catch (GroupNotFoundException e) {
throw new UserErrorException("Failed to send to group: " + e.getMessage());
} catch (LastGroupAdminException e) {