Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show more verbose message on import errors #1319

Merged
merged 1 commit into from
Oct 19, 2016

Conversation

redixin
Copy link
Contributor

@redixin redixin commented Oct 18, 2016

Show more verbose message on import errors when using python -m aiohttp.web

User will see more details in case of problems with their code.

For example message:

aiohttp.web: error: unable to import defiler.server: No module named 'aiomysql'

is more useful then:

aiohttp.web: error: module 'defiler.server' not found

such messages can be even misleading

@asvetlov
Copy link
Member

Please fix failed tests

ImportError is not always 'module not found', so we should display
more verbose message when this exception occured.

For example message:

    aiohttp.web: error: unable to import defiler.server: No module named 'aiomysql'

is more useful then:

    aiohttp.web: error: module 'defiler.server' not found
@codecov-io
Copy link

codecov-io commented Oct 19, 2016

Current coverage is 98.51% (diff: 100%)

Merging #1319 into master will not change coverage

@@             master      #1319   diff @@
==========================================
  Files            29         29          
  Lines          6515       6515          
  Methods           0          0          
  Messages          0          0          
  Branches       1094       1094          
==========================================
  Hits           6418       6418          
  Misses           47         47          
  Partials         50         50          

Powered by Codecov. Last update 2fd5b51...b784521

@asvetlov asvetlov merged commit 0033c48 into aio-libs:master Oct 19, 2016
@asvetlov
Copy link
Member

Thanks!

@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants