Merge pull request #6 from rafaesc/patch-1

Updated the Stripe config message error
react_convert
Mark Moffat 2018-02-06 06:49:25 +01:00 committed by GitHub
commit 46a82cc123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
app.js
View File

@ -39,7 +39,7 @@ if(config.paymentGateway === 'paypal'){
if(config.paymentGateway === 'stripe'){ if(config.paymentGateway === 'stripe'){
const stripeConfig = ajv.validate(require('./config/stripeSchema'), require('./config/stripe.json')); const stripeConfig = ajv.validate(require('./config/stripeSchema'), require('./config/stripe.json'));
if(stripeConfig === false){ if(stripeConfig === false){
console.log(colors.red(`PayPal config is incorrect: ${ajv.errorsText()}`)); console.log(colors.red(`Stripe config is incorrect: ${ajv.errorsText()}`));
process.exit(2); process.exit(2);
} }
} }