Skip to content

Commit

Permalink
Added more details to TypeError regarding access_log_class.
Browse files Browse the repository at this point in the history
  • Loading branch information
hellysmile committed Oct 13, 2017
1 parent f0ac3e3 commit db02580
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aiohttp/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,10 @@ def make_handler(self, *,
**kwargs):

if not issubclass(access_log_class, AbstractAccessLogger):
raise TypeError('access_log_class must be subclass of '
'aiohttp.abc.AbstractAccessLogger')
raise TypeError(
'access_log_class must be subclass of '
'aiohttp.abc.AbstractAccessLogger, got {}'.format(
access_log_class))

self._set_loop(loop)
self.freeze()
Expand Down

0 comments on commit db02580

Please sign in to comment.