Print error if .lumerc cannot be found
This commit is contained in:
parent
1e4a5f988e
commit
84c1be5054
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user