diff --git a/adafruit_wsgi/wsgi_app.py b/adafruit_wsgi/wsgi_app.py index a9e78ae..95421a5 100644 --- a/adafruit_wsgi/wsgi_app.py +++ b/adafruit_wsgi/wsgi_app.py @@ -70,9 +70,8 @@ def __call__(self, environ: Dict[str, str], start_response: Callable): status, headers, resp_data = route["func"](request, *args) except (ValueError, TypeError) as err: raise RuntimeError( - "Proper HTTP response return not given for request handler '{}'".format( - route["func"].__name__ - ) + "Proper HTTP response not returned by request handler for path " + + f"'{request.path}'" ) from err start_response(status, headers) return resp_data