web/form.py
changeset 4235 49eb7e87d36d
parent 4224 5998df006968
child 4252 6c4f109c2b03
--- a/web/form.py	Wed Jan 13 17:41:42 2010 +0100
+++ b/web/form.py	Wed Jan 13 17:42:27 2010 +0100
@@ -113,7 +113,7 @@
         for field in cls_or_self._fieldsattr():
             if field.name == name and field.role == role:
                 return field
-        raise FieldNotFound(name)
+        raise FieldNotFound(name, role)
 
     @iclassmethod
     def fields_by_name(cls_or_self, name, role=None):