Skip to content

Commit 4212e67

Browse files
author
Daniel Neuhäuser
committed
Merge pull request pallets#890 from seancron/documentation-fix
Documentation fix: Makes the error names consistent
2 parents cab514e + a7f5d60 commit 4212e67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/patterns/apierrors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ At that point views can raise that error, but it would immediately result
4747
in an internal server error. The reason for this is that there is no
4848
handler registered for this error class. That however is easy to add::
4949

50-
@app.errorhandler(InvalidAPIUsage)
50+
@app.errorhandler(InvalidUsage)
5151
def handle_invalid_usage(error):
5252
response = jsonify(error.to_dict())
5353
response.status_code = error.status_code

0 commit comments

Comments
 (0)