config: Make fs.ConfigFileGet return an exists flag

This commit is contained in:
Nick Craig-Wood
2018-05-21 14:53:45 +01:00
parent 85d09729f2
commit 3c89406886
3 changed files with 18 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ var (
//
// This is a function pointer to decouple the config
// implementation from the fs
ConfigFileGet = func(section, key string, defaultVal ...string) string { return "" }
ConfigFileGet = func(section, key string) (string, bool) { return "", false }
// CountError counts an error. If any errors have been
// counted then it will exit with a non zero error code.