We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a206e4 commit 598dce0Copy full SHA for 598dce0
1 file changed
internal/config/viper.go
@@ -64,17 +64,17 @@ func GetConfigFileUsed() string {
64
// Returns an error if the extension is not supported.
65
func validateConfigFileExtension(configFile string) error {
66
ext := strings.ToLower(filepath.Ext(configFile))
67
-
+
68
// Allow no extension (for default sqlconfig file)
69
if ext == "" {
70
return nil
71
}
72
73
// Allow .yaml and .yml extensions
74
if ext == ".yaml" || ext == ".yml" {
75
76
77
78
// Return error for unsupported extensions
79
return localizer.Errorf(
80
"Configuration files must use YAML format with .yaml or .yml extension.\n"+
0 commit comments