Commits

Jesper Nøhr committed b7f9e2e

minor typo in form handling code

  • Participants
  • Parent commits 21a24da

Comments (0)

Files changed (1)

File piston/resource.py

             result = meth(request, *args, **kwargs)
         except FormValidationError, e:
             resp = rc.BAD_REQUEST
-            resp.write(e.form.errors)
+            resp.write(' '+str(e.form.errors))
             
-            return rsep
+            return resp
         except TypeError, e:
             result = rc.BAD_REQUEST
             hm = HandlerMethod(meth)