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:
parent
28cc88c2cd
commit
a35d388543
1 changed files with 1 additions and 0 deletions
1
.github/dev.js
vendored
1
.github/dev.js
vendored
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue