From a35d388543ef0e01fbaaefa984f2244f83e968d7 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Thu, 6 Oct 2022 15:42:19 +0700 Subject: [PATCH] Fixed missing return when fetching Stripe key fails - we should protect against the stripe command throwing an error because it's not installed or it errors etc --- .github/dev.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/dev.js b/.github/dev.js index 168c021e82..298a62b823 100644 --- a/.github/dev.js +++ b/.github/dev.js @@ -53,6 +53,7 @@ if (DASH_DASH_ARGS.includes('portal')) { stripeSecret = await exec('stripe listen --print-secret'); } catch (err) { console.error('Failed to fetch Stripe secret token, do you need to connect Stripe CLI?', err); + return; } if (!stripeSecret || !stripeSecret.stdout) {