fix: error out correctly and fix doc string
continuous-integration/drone/push Build is failing Details

This commit is contained in:
decentral1se 2021-09-06 00:26:45 +02:00
parent 5e05bcd8b0
commit c03d187256
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package internal
import (
"errors"
"os"
"coopcloud.tech/abra/pkg/app"
"coopcloud.tech/abra/pkg/config"
@ -25,7 +26,7 @@ func ValidateRecipeArg(c *cli.Context) string {
return recipeName
}
// ValidateAppNameArg ensures the app name arg is valid.
// ValidateApp ensures the app name arg is valid.
func ValidateApp(c *cli.Context) config.App {
appName := c.Args().First()
@ -36,6 +37,7 @@ func ValidateApp(c *cli.Context) config.App {
app, err := app.Get(appName)
if err != nil {
logrus.Fatal(err)
os.Exit(1)
}
return app