1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Update error message

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-01-12 08:17:18 -05:00
parent 71f4423c5f
commit 2f2b98eeff

View File

@ -335,7 +335,7 @@ export class KubeApi<
protected async checkPreferredVersion() { protected async checkPreferredVersion() {
if (!this.doCheckPreferredVersion && (this.fallbackApiBases || this.allowedUsableVersions)) { 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) { if (this.doCheckPreferredVersion && this.apiVersionPreferred === undefined) {