Skip to content

Commit

Permalink
fix labring#571. handle unexpected error
Browse files Browse the repository at this point in the history
  • Loading branch information
oldthreefeng committed Jan 4, 2021
1 parent df1a2b9 commit f8a7f90
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 f8a7f90

Please sign in to comment.