mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 23:32:02 +00:00
Merge pull request #1043 from alrs/install-err
cmd/install: fix dropped errors thanks @alrs
This commit is contained in:
@@ -96,6 +96,9 @@ func (o *UseOptions) install(branch string, zitiApp string) error {
|
||||
|
||||
if o.Version != "" {
|
||||
newVersion, err = semver.Make(o.Version)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
log.Infoln("Attempting to install '" + zitiApp + "' version: " + newVersion.String() + " from branch '" + branch + "'")
|
||||
@@ -111,6 +114,9 @@ func (o *UseOptions) Run() error {
|
||||
branch := o.Branch
|
||||
if branch == "" {
|
||||
list, err := o.getCurrentZitiSnapshotList()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
branch, err = util.PickName(list, "Which Branch would you like to switch to: ")
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user