Returning the missing loader name.

This commit is contained in:
NI
2019-08-07 16:49:32 +08:00
parent 7f4cf7bef5
commit 539aa71e4e

View File

@@ -182,7 +182,7 @@ func File(customPath string) Loader {
return loadFile(fallbackFileSearchList[f]) return loadFile(fallbackFileSearchList[f])
} }
return "", Configuration{}, fmt.Errorf( return fileTypeName, Configuration{}, fmt.Errorf(
"Configuration file was not specified. Also tried fallback files "+ "Configuration file was not specified. Also tried fallback files "+
"\"%s\", but none of it was available", "\"%s\", but none of it was available",
strings.Join(fallbackFileSearchList, "\", \"")) strings.Join(fallbackFileSearchList, "\", \""))