updatecli
updatecli copied to clipboard
Feature Request: Improve message when scm clone failed
Is your feature request related to a problem?
When we use a scm configuration without providing a branch, then Updatecli fallback to "main". If for some reason that main branch do not exist, Updatecli due to the go-git library, return "ERROR: err - reference not found" which is quite confusing for newcomers.
Solution you'd like
I propose to catch that error message and then translate it to branch XXX do not exist
Alternatives you've considered
No response
Anything else?
The place to catch this error message should be in https://github.com/updatecli/updatecli/blob/1c37a46e5592eb0397bd5cfd96d95a7459da7d2f/pkg/core/engine/main.go#L141
Current error message looks like
+++++++++++
+ PREPARE +
+++++++++++
Loading Pipeline "updatecli.yaml"
SCM repository retrieved: 1
ERROR: err - reference not found
++++++++++++++++++
+ AUTO DISCOVERY +
++++++++++++++++++