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

Improve Error Message "Could not Resolve Host" #194

Closed
fabricereix opened this issue Jun 9, 2021 · 0 comments · Fixed by #201
Closed

Improve Error Message "Could not Resolve Host" #194

fabricereix opened this issue Jun 9, 2021 · 0 comments · Fixed by #201
Labels
enhancement New feature or request
Milestone

Comments

@fabricereix
Copy link
Collaborator

Display url/hostname used when host can not be resolved.
It is useful when url is calculated from a variable.

For example, currently hurl produces the following error message.

$ echo 'GET {{url}}' | hurl --variable url=http://unknown 
error: Http Connection
  --> -:1:5
   |
 1 | GET {{url}}
   |     ^^^^^^^ Could not resolve host
   |

The following one will be be more helpful

$ echo 'GET {{url}}' | hurl --variable url=http://unknown 
error: Http Connection
  --> -:1:5
   |
 1 | GET {{url}}
   |     ^^^^^^^ Could not resolve host <unknown>
   |

@fabricereix fabricereix added enhancement New feature or request 1.3.0 labels Jun 9, 2021
@lepapareil lepapareil added this to the 1.3.0 milestone Jun 11, 2021
@fabricereix fabricereix linked a pull request Jun 12, 2021 that will close this issue
@lepapareil lepapareil removed the 1.3.0 label Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants