0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

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
This commit is contained in:
Daniel Lockyer 2022-10-06 15:42:19 +07:00
parent 28cc88c2cd
commit a35d388543
No known key found for this signature in database

1
.github/dev.js vendored
View file

@ -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) {