We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40e306c commit f26f68eCopy full SHA for f26f68e
backend/boltathon/app.py
@@ -53,12 +53,12 @@ def handle_notfound_error(err):
53
54
@app.errorhandler(RequestError)
55
def handle_request_error(err):
56
- return jsonify({"message": err.message}), err.code
+ return jsonify({"error": err.message}), err.code
57
58
@app.errorhandler(Exception)
59
def handle_exception(err):
60
app.logger.debug(traceback.format_exc())
61
app.logger.debug("Uncaught exception at {} {}, see above for traceback".format(request.method, request.path))
62
- return jsonify({"message": "Something went wrong"}), 500
+ return jsonify({"error": "Something went wrong"}), 500
63
64
return app
0 commit comments