yaml config parse error handling failure
Closed this issue · 2 comments
udaykor commented
Environment (required):
- macOS (M1)
- Version 1.0.0
** bad yaml file parsing - unhandled error**
Error: cannot load configuration: While parsing config: yaml: unmarshal errors:
line 1: cannot unmarshal !!str usernam...
into map[string]interface {}
To Reproduce
Steps to reproduce the behavior:
- Create a config file with username: and password: i.e. without the space.
- Marshalling error is displayed. Not all users will be aware of yaml specs to know that space is to be added
Expected behavior
Please let a user know that a space character is expected or provide an example.
Observed behavior
Error message prevents user from running upctl including checking version.
kaminek commented