fix checker error message (#1266)

Signed-off-by: petelock <pete2387@gmail.com>
This commit is contained in:
petelock 2024-01-04 09:31:00 +00:00 committed by GitHub
parent d681c62ff8
commit 00dc5d9116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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