Update error message

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-01-24 16:04:46 -05:00
1 parent 71f4423c5f
commit 2f2b98eeff
1 file changed
+1 -1
+1 -1
View File
@@ -335,7 +335,7 @@ export class KubeApi<
protected async checkPreferredVersion() {
if (!this.doCheckPreferredVersion && (this.fallbackApiBases || this.allowedUsableVersions)) {
throw new Error("checkPreferredVersion must be enabled if fallbackApiBases is set in KubeApi");
throw new Error("checkPreferredVersion must be enabled if either fallbackApiBases or allowedUsableVersions are set in KubeApi");
}
if (this.doCheckPreferredVersion && this.apiVersionPreferred === undefined) {