Browse files

Fixed docstring. This fixes #45

  • Loading branch information...
1 parent ef0dc18 commit 6c095deda51efb34cd18bd23411ebd6f2a0cdfe0 @mitsuhiko mitsuhiko committed May 25, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 flask.py
View
4 flask.py
@@ -1004,14 +1004,14 @@ def errorhandler(self, code):
error code. Example::
@app.errorhandler(404)
- def page_not_found():
+ def page_not_found(error):
return 'This page does not exist', 404
You can also register a function as error handler without using
the :meth:`errorhandler` decorator. The following example is
equivalent to the one above::
- def page_not_found():
+ def page_not_found(error):
return 'This page does not exist', 404
app.error_handlers[404] = page_not_found

0 comments on commit 6c095de

Please sign in to comment.