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

Space in target Gives Cryptic Error #174

Open
erikerikson opened this issue Sep 15, 2016 · 1 comment
Open

Space in target Gives Cryptic Error #174

erikerikson opened this issue Sep 15, 2016 · 1 comment

Comments

@erikerikson
Copy link
Contributor

Low priority but...

If you have a space at the beginning of your target attribute as follows...

{
   "config": {
       "target": " https://www.google.com",
       "phases": [
           [...]

...you get the following cryptic error.

 "errors": {
           "Protocol \"https:\" not supported. Expected \"http:\".": NNNN
       },

A trim might be appropriate. That or a more appropriate and helpful error message.

@hassy
Copy link
Member

hassy commented Sep 16, 2016

Yes, agree. In general we need better validation + helpful error messages & warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants