diff --git a/flask/wrappers.py b/flask/wrappers.py index 57d5a029..df9d205c 100644 --- a/flask/wrappers.py +++ b/flask/wrappers.py @@ -177,7 +177,7 @@ class Request(RequestBase): ctx = _request_ctx_stack.top if ctx is not None: if ctx.app.config.get('DEBUG', False): - raise BadRequest(e) + raise BadRequest('No JSON object could be decoded') raise BadRequest() def _load_form_data(self):