fix: throw an error when trying to edit config for nonexistent app
continuous-integration/drone/pr Build is passing

This commit is contained in:
2021-09-04 08:10:23 +02:00
parent b1d4f12e7d
commit 345586f737
+3
View File
@@ -37,6 +37,9 @@ var appConfigCommand = &cli.Command{
logrus.Fatal(err)
}
if appFiles[appName].Path == "" {
return errors.New("app doesn't exist")
}
cmd := exec.Command(ed, appFiles[appName].Path)
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout