Commits

Anonymous committed 9a91918

added missing return; fixed two typos

Comments (0)

Files changed (2)

 
     def error_handler(self, e, request):
         """
-        Override this method add handling of errors customized for your 
+        Override this method to add handling of errors customized for your 
         needs
         """
         if isinstance(e, FormValidationError):
                 msg += '\n\nException was: %s' % str(e)
 
             result.content = format_error(msg)
+            return result
         elif isinstance(e, Http404):
             return rc.NOT_FOUND
 
 
         class MyResource(Resource):
             def error_handler(self, error, request):
-                # if the exeption is our exeption then generate a 
+                # if the exception is our exeption then generate a 
                 # custom response with embedded content that will be 
                 # formatted as json 
                 if isinstance(error, GoAwayError):