fix checker error message (#1266)

Signed-off-by: petelock <pete2387@gmail.com>
This commit is contained in:
petelock
2024-01-04 17:31:00 +08:00
committed by GitHub
parent d681c62ff8
commit 00dc5d9116
+1 -1
View File
@@ -116,7 +116,7 @@ func TopConfigKeysVerifier(filePath string, helmfileContent []byte) (bool, error
preKey := orderKeys[i-1]
currentKey := orderKeys[i]
if topkeysPriority[preKey] > topkeysPriority[currentKey] {
return runtime.V1Mode, fmt.Errorf("top-level config key %s must be defined before %s in %s", preKey, currentKey, filePath)
return runtime.V1Mode, fmt.Errorf("top-level config key %s must be defined before %s in %s", currentKey, preKey, filePath)
}
}
return false, nil