Skip to content

Commit

Permalink
Mention handler and middlewares in
Browse files Browse the repository at this point in the history
  on error (#218)
  • Loading branch information
asvetlov committed Dec 31, 2014
1 parent 7c6f67a commit 26163e7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
CHANGES
=======

0.13.1 (Unreleased)
0.13.1 (12-31-2014)
--------------------

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

- Html escape traceback text in `ServerHttpProtocol.handle_error`

- Mention handler and middlewares in `aiohttp.web.RequestHandler.handle_request`
on error (#218)


0.13.0 (12-29-2014)
-------------------
Expand Down
2 changes: 1 addition & 1 deletion aiohttp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This relies on each of the submodules having an __all__ variable.

__version__ = '0.13.1a0'
__version__ = '0.13.1'


from .protocol import * # noqa
Expand Down
5 changes: 3 additions & 2 deletions aiohttp/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -1210,8 +1210,9 @@ def handle_request(self, message, payload):

if not isinstance(resp, StreamResponse):
raise RuntimeError(
("Handler should return response instance, got {!r}")
.format(type(resp)))
("Handler {!r} should return response instance, got {!r} "
"[middlewares {!r}]")
.format(match_info.handler, type(resp), self._middlewares))
except HTTPException as exc:
resp = exc

Expand Down

0 comments on commit 26163e7

Please sign in to comment.