def error_commit_error(ex):
    return {"status": "error", "message": "error when committing object to database", "exception": ex.message}
Return an error response when database commit fails somehow.
dataset/ETHPy150Open haukurk/flask-restapi-recipe/restapi/modules/errors.py/error_commit_error