fix(guide-ci): Handle uncaught errors

This commit is contained in:
Bouncey
2018-10-19 14:02:52 +01:00
committed by Stuart Taylor
parent 6d511c558a
commit 4cd6b568e1
3 changed files with 8 additions and 12 deletions

View File

@ -1,10 +0,0 @@
---
title: PHP Operators
localeTitle: Operadores PHP
---
## Operadores PHP
Esto es un talón. [Ayuda a nuestra comunidad a expandirla](https://github.com/freecodecamp/guides/tree/master/src/pages/php/php-operators/index.md) .
[Esta guía rápida de estilo ayudará a asegurar que su solicitud de extracción sea aceptada](https://github.com/freecodecamp/guides/blob/master/README.md) .

View File

@ -13,7 +13,7 @@
"test-ci": "npm test",
"test:client": "cd ./client && npm test && cd ../",
"test:curriculum": "echo 'Warning: TODO - Define Testing.'",
"test:guide-directorys": "node ./tools/scripts/ci/ensure-guide-page-naming.js",
"test:guide-directories": "node ./tools/scripts/ci/ensure-guide-page-naming.js",
"test:server": "echo 'Warning: TODO - Define Testing.'",
"test:tools": "jest ./tools",
"start-develop": "node ./tools/scripts/start-develop.js"

View File

@ -47,7 +47,13 @@ function checkFile(file) {
}
readdirp({ root: guideRoot })
.on('data', checkFile)
.on('data', file =>
checkFile(file).catch(err => {
console.error(err);
// eslint-disable-next-line no-process-exit
process.exit(1);
})
)
.on('end', () => {
console.log(`