fix: unscope err for report subcommands

This commit is contained in:
Jose Diaz-Gonzalez committed 2021-01-07 01:12:50 -05:00
1 parent 081a44755e
commit 666bb9dfee
7 files changed
+14 -14

No files matched your search

+2 -2
View File
@@ -65,8 +65,8 @@ func main() {
err = apps.CommandRename(oldAppName, newAppName, *skipDeploy)
case "report":
args := flag.NewFlagSet("apps:report", flag.ExitOnError)
osArgs, infoFlag, err := common.ParseReportArgs("apps", os.Args[2:])
if err == nil {
osArgs, infoFlag, flagErr := common.ParseReportArgs("apps", os.Args[2:])
if flagErr == nil {
args.Parse(osArgs)
appName := args.Arg(0)
err = apps.CommandReport(appName, infoFlag)