Refactor k.FatalIfErrorf to use k.Fatalf

This commit is contained in:
Sven Nebel
2020-10-10 21:03:14 +01:00
committed by Alec Thomas
parent 5cf89d77b1
commit 5b3fd5476a
+1 -2
View File
@@ -336,8 +336,7 @@ func (k *Kong) FatalIfErrorf(err error, args ...interface{}) {
_ = k.help(options, err.Context)
fmt.Fprintln(k.Stdout)
}
k.Errorf("%s", msg)
k.Exit(1)
k.Fatalf("%s", msg)
}
// LoadConfig from path using the loader configured via Configuration(loader).