clarify an error message that sent me UTSLing
authorGreg Price <price@mit.edu>
Thu, 17 Apr 2008 04:53:07 +0000 (00:53 -0400)
committerGreg Price <price@mit.edu>
Thu, 17 Apr 2008 04:53:07 +0000 (00:53 -0400)
svn path=/trunk/packages/sipb-xen-www/; revision=429

code/main.py

index c419f32..98fe1a8 100755 (executable)
@@ -136,7 +136,7 @@ def hasVnc(status):
 def parseCreate(user, fields):
     name = fields.getfirst('name')
     if not validation.validMachineName(name):
 def parseCreate(user, fields):
     name = fields.getfirst('name')
     if not validation.validMachineName(name):
-        raise InvalidInput('name', name, 'You must provide a machine name.')
+        raise InvalidInput('name', name, 'You must provide a machine name.  Max 22 chars, alnum plus \'-\' and \'_\'.')
     name = name.lower()
 
     if Machine.get_by(name=name):
     name = name.lower()
 
     if Machine.get_by(name=name):