More robust message for network access blocking
thatguysimon opened this issue · 0 comments
thatguysimon commented
Hi!
It would be great to see a more robust error message than "Network is disabled".
This would be especially useful for newcomers or people who aren't aware that this package is installed on the project they are working on.
Some ideas for what it could contain:
- A title saying that the error is coming from this package
- A short summary of what happened. Why the error was raised.
- The http request that was made
- The list of configured allowed hosts (for quick comparison with the actual request made)
- Possible ways to solve the issue (change the request, record a cassette, add allowed hosts...)
- A link to the relevant section in the docs.
A great example of a similar error message is the message in Ruby's VCR implementation which you can see here: https://stackoverflow.com/questions/25799165/vcr-throwing-cant-handle-request-on-the-second-attempt-to-run-testfirst-attempt
Thanks!