Skip to content

Commit 26163e7

Browse files
committed
Mention handler and middlewares in
on error (#218)
1 parent 7c6f67a commit 26163e7

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGES.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
CHANGES
22
=======
33

4-
0.13.1 (Unreleased)
4+
0.13.1 (12-31-2014)
55
--------------------
66

77
- Add `aiohttp.web.StreamResponse.started` property #213
88

99
- Html escape traceback text in `ServerHttpProtocol.handle_error`
1010

11+
- Mention handler and middlewares in `aiohttp.web.RequestHandler.handle_request`
12+
on error (#218)
13+
1114

1215
0.13.0 (12-29-2014)
1316
-------------------

aiohttp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This relies on each of the submodules having an __all__ variable.
22

3-
__version__ = '0.13.1a0'
3+
__version__ = '0.13.1'
44

55

66
from .protocol import * # noqa

aiohttp/web.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,8 +1210,9 @@ def handle_request(self, message, payload):
12101210

12111211
if not isinstance(resp, StreamResponse):
12121212
raise RuntimeError(
1213-
("Handler should return response instance, got {!r}")
1214-
.format(type(resp)))
1213+
("Handler {!r} should return response instance, got {!r} "
1214+
"[middlewares {!r}]")
1215+
.format(match_info.handler, type(resp), self._middlewares))
12151216
except HTTPException as exc:
12161217
resp = exc
12171218

0 commit comments

Comments
 (0)