fix: throw an error when trying to edit config for nonexistent app #69
@ -37,6 +37,9 @@ var appConfigCommand = &cli.Command{
|
||||
logrus.Fatal(err)
|
||||
}
|
||||
|
||||
if appFiles[appName].Path == "" {
|
||||
return errors.New("app doesn't exist")
|
||||
decentral1se
commented
Review
```golang
logrus.Fatalf("'%s' doesn't exist?", appFiles[appName].Path)
```
|
||||
}
|
||||
cmd := exec.Command(ed, appFiles[appName].Path)
|
||||
cmd.Stdin = os.Stdin
|
||||
cmd.Stdout = os.Stdout
|
||||
|
Loading…
x
Reference in New Issue
Block a user