Merge pull request #1043 from alrs/install-err

cmd/install: fix dropped errors

thanks @alrs
This commit is contained in:
dovholuknf
2023-03-21 13:18:05 -04:00
committed by GitHub
+6
View File
@@ -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