Skip to content

Commit a7f5d60

Browse files
committed
Makes the error names consistent
1 parent 5d20501 commit a7f5d60

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)