Changeset 7ff6405 in code for cmd.c


Ignore:
Timestamp:
Apr 22, 2015, 5:28:59 PM (10 years ago)
Author:
Mike Belopuhov <mike@…>
Branches:
master
Children:
65b48ee
Parents:
176b6ef
Message:

Better error messages for invalid groups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmd.c

    r176b6ef r7ff6405  
    162162
    163163        if (strlen(arg) == 0) {
    164                 icb_error(is, "Invalid group");
     164                icb_error(is, "Invalid group name");
    165165                return;
    166166        }
     
    174174        if (ig == NULL) {
    175175                if (!creategroups) {
    176                         icb_error(is, "Invalid group");
     176                        icb_error(is, "Can't create new groups");
    177177                        return;
    178178                } else {
    179179                        if ((ig = icb_addgroup(is, group)) == NULL) {
    180                                 icb_error(is, "Can't create group");
     180                                icb_error(is, "Can't create group %s", group);
    181181                                return;
    182182                        }
Note: See TracChangeset for help on using the changeset viewer.