Changeset 412 for trunk/packages


Ignore:
Timestamp:
Apr 14, 2008, 12:11:08 AM (17 years ago)
Author:
ecprice
Message:

Better error messaging for invalid lockers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/getafsgroups.py

    r409 r412  
    22import pprint
    33import subprocess
    4 from webcommon import InvalidInput
    54
    65# import ldap
     
    3837def getLockerPath(locker):
    3938    if '/' in locker or locker in ['.', '..']:
    40         raise InvalidInput('owner', locker, 'Locker name is invalid.')
     39        raise AfsProcessError("Locker '%s' is invalid." % locker)
    4140    return '/mit/' + locker
    4241
Note: See TracChangeset for help on using the changeset viewer.