From 1f8e96b208ca81ff17bb33e2d98d3d53fa237af0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ey=C3=BE=C3=B3r=20Magn=C3=BAsson?= Date: Fri, 16 Aug 2019 15:19:32 +0200 Subject: [PATCH] fix(minikube): fix incorrect error handling --- garden-service/src/plugins/kubernetes/local/minikube.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/garden-service/src/plugins/kubernetes/local/minikube.ts b/garden-service/src/plugins/kubernetes/local/minikube.ts index fdb5008677..4ffd41c9d9 100644 --- a/garden-service/src/plugins/kubernetes/local/minikube.ts +++ b/garden-service/src/plugins/kubernetes/local/minikube.ts @@ -18,7 +18,7 @@ export async function setMinikubeDockerEnv() { try { minikubeEnv = await execa.stdout("minikube", ["docker-env", "--shell=bash"]) } catch (err) { - if (err.contains("driver does not support")) { + if ((err).stderr.includes("driver does not support")) { return } throw err