Summary
When having a mis-configured file at ~/.spin/config the error message provided is missing information about where to fix this issue.
Motivation
I was moving really fast and dumped in a ~/.spin/config file that was not formatted correctly. When I moved on to use the shore CLI it was then I found out about this issue and I did not know what was the context for this error. Having a clear identification of where the issue is occurring would help.
The expected outcome would have the filename of what is being parsed to set the context of where the issue is located.
Describe alternatives you've considered
Have not considered any alternatives.
Additional context
Here is an example of the ~/.spin/config I used:
auth:
enabled: true
ignoreCertErrors: true
x509:
certPath: ~/.config/spinnaker/id_spin.cert
keyPath: ~/.config/spinnaker/id_spin.key
gate:
endpoint: [https://hostname.org:442](https://hostname.org:443/)
I got the following output:
➜ shore save
WARN[0000] Save pipeline returned an error: error converting YAML to JSON: yaml: line 7: did not find expected key
error converting YAML to JSON: yaml: line 7: did not find expected key
Summary
When having a mis-configured file at
~/.spin/configthe error message provided is missing information about where to fix this issue.Motivation
I was moving really fast and dumped in a
~/.spin/configfile that was not formatted correctly. When I moved on to use theshoreCLI it was then I found out about this issue and I did not know what was the context for this error. Having a clear identification of where the issue is occurring would help.The expected outcome would have the filename of what is being parsed to set the context of where the issue is located.
Describe alternatives you've considered
Have not considered any alternatives.
Additional context
Here is an example of the
~/.spin/configI used:I got the following output: