-
Notifications
You must be signed in to change notification settings - Fork 66
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
Weird error if fastly-serviceid parameter is empty #1135
Comments
@MarquiseRosier that might be something for you. |
@kptdobe did you still have the old |
I'm the params man lol |
@tripodsan No. I think I was fine with the param names, I discovered the issue accidentally on CircleCI where my env variable was not transferred from one step to another thus value was empty. I was doing:
and It just took me a while to realise the pb was the value and not something related to my npm setup or a weird issue in the cli. |
This moves logic for checking for empty required parameters to a yargs-check.js "fix #1135"
This ensures that the arguments are not empty! "fix #1135"
This ensures that the arguments are not empty! "fix #1135"
🎉 This issue has been resolved in version 5.0.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
I lost plenty of time on this stupid issue. If fastly-serviceid is empty, you get the following error message:
To Reproduce
Steps to reproduce the behavior:
hlx publish --fastly-serviceid ""
(assuming you have other parameters properly set)Expected behavior
An error message like when no parameter at all is provided:
Version:
run:
$ hlx --version
4.10.0
The text was updated successfully, but these errors were encountered: