Improve errors and warnings when environment variables are not supplied #166
Labels
0 - _Triaging
Issue is accepted, but a milestone has yet to be added for the issue
Improvement
Issues that enhances existing functionality, or adds new features
Checklist
Is Your Feature Request Related To A Problem? Please describe.
When environment variables (for example,
GITRELEASEMANAGER_PAT
) are not set, and tasks requiring them are run, the output does not generally report the name of the missing environment variable, which is pretty bad UX.Describe The Solution. Why is it needed?
If the task being run requires an environment variable in order to do anything, and the variable is missing, we should emit the name of the missing variable.
It probably makes sense to have a centralised helper function that can be used to get environment variables, and output the name of the missing variable if it's not present, and then use that anywhere and everywhere an environment variable is absolutely required.
Additional Context
No response
Related Issues
No response
The text was updated successfully, but these errors were encountered: