Skip to content
Myr

Merge pull request #3880 from elliott-king/patch-2

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Docs update: clarify json error handling

authored by David Lord · committed by GitHub · parents 7f20691, 7068d09 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/blueprints.rst+1 added-1 removed
268 unmodified lines
269 @app.errorhandler(404)270 @app.errorhandler(405)271 def _handle_api_error(ex):272 if request.path.startswith('/api/'):273 return jsonify_error(ex)273 return jsonify(error=str(ex)), ex.code274 else:275 return ex276277See :doc:`/errorhandling`.