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:
parent
71f4423c5f
commit
2f2b98eeff
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user