Comment 3 for bug 1597133

Revision history for this message
Ghada El-Zoghbi (ghada-z) wrote :

Hi Robert,

Thanks for the patch. We've had a request from one of our clients to improve the error message that's thrown when adding a group through the csv upload and the group name is already in use.

Maybe something like:

 throw new UserException('group_create: The supplied shortname \'' .
                        $data['shortname'] . '\' is already in use. This shortname \'' .
                        $shortname . '\' is available.');

Instead of:

throw new UserException('group_create: problem with supplied shortname ' . $data['shortname'] . ' not matching allowed shortname ' . $shortname);

I'll submit a patch.