forked from orbit-oss/flask
Fixed error in errorhandler doc string. (#2014)
This commit is contained in:
parent
7132feb1a5
commit
c687ffb192
1 changed files with 1 additions and 1 deletions
|
|
@ -1115,7 +1115,7 @@ class Flask(_PackageBoundObject):
|
||||||
|
|
||||||
@setupmethod
|
@setupmethod
|
||||||
def errorhandler(self, code_or_exception):
|
def errorhandler(self, code_or_exception):
|
||||||
"""A decorator that is used to register a function give a given
|
"""A decorator that is used to register a function given an
|
||||||
error code. Example::
|
error code. Example::
|
||||||
|
|
||||||
@app.errorhandler(404)
|
@app.errorhandler(404)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue