diff --git a/cmd/lume/main.go b/cmd/lume/main.go index c97bf20..fae0c5f 100644 --- a/cmd/lume/main.go +++ b/cmd/lume/main.go @@ -17,6 +17,11 @@ func main() { var config lumecmd.Config configPath := getConfigPath() + if configPath == "" { + fmt.Println("fatal: ~/.lumerc was not found") + os.Exit(1) + } + if _, err := toml.DecodeFile(configPath, &config); err != nil { fmt.Printf("fatal: failed to parse %s\n", configPath) fmt.Println(err)