Skip to content

Commit f26f68e

Browse files
committed
Fix misformatted error responses
1 parent 40e306c commit f26f68e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/boltathon/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ def handle_notfound_error(err):
5353

5454
@app.errorhandler(RequestError)
5555
def handle_request_error(err):
56-
return jsonify({"message": err.message}), err.code
56+
return jsonify({"error": err.message}), err.code
5757

5858
@app.errorhandler(Exception)
5959
def handle_exception(err):
6060
app.logger.debug(traceback.format_exc())
6161
app.logger.debug("Uncaught exception at {} {}, see above for traceback".format(request.method, request.path))
62-
return jsonify({"message": "Something went wrong"}), 500
62+
return jsonify({"error": "Something went wrong"}), 500
6363

6464
return app

0 commit comments

Comments
 (0)