Skip to content
Myr

Clarify json error handling

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

authored by Elliott King · committed by GitHub · parent 7f20691 · 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`.