Skip to content

Commit

Permalink
Merge pull request #572 from oldthreefeng/hotfix_0104
Browse files Browse the repository at this point in the history
fix #571. handle unexpected error
  • Loading branch information
fanux authored Jan 5, 2021
2 parents 2e763f4 + f8a7f90 commit 88e3264
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/appmanager/installapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ func InstallApp(flag *InstallFlags, cfgFile string) error {
os.Exit(0)
}

pkgConfig, _ := LoadAppConfig(flag.PkgURL, flag.Config)
pkgConfig, err := LoadAppConfig(flag.PkgURL, flag.Config)
if err != nil {
logger.Error("Load App config from tarball err: ", err)
os.Exit(0)
}
pkgConfig.URL = flag.PkgURL
pkgConfig.Name = nameFromUrl(flag.PkgURL)
pkgConfig.Workdir = flag.WorkDir
Expand Down

0 comments on commit 88e3264

Please sign in to comment.