提交 072c7887 编写于 作者: J Joao Moreno

improve hygiene messages

上级 4727065e
......@@ -119,7 +119,7 @@ var hygiene = exports.hygiene = function (some) {
.pipe(copyrights)
.pipe(es.through(null, function () {
if (errorCount > 0) {
this.emit('error', 'Hygiene failed with ' + errorCount + ' errors.\nCheck build/gulpfile.hygiene.js for the hygiene rules.');
this.emit('error', 'Hygiene failed with ' + errorCount + ' errors. Check \'build/gulpfile.hygiene.js\'.');
} else {
this.emit('end');
}
......@@ -135,7 +135,8 @@ if (require.main === module) {
var cp = require('child_process');
cp.exec('git diff --cached --name-only', function (err, out) {
if (err) {
console.log(err);
console.error();
console.error(err);
process.exit(1);
}
......@@ -144,7 +145,8 @@ if (require.main === module) {
.filter(function (l) { return !!l; });
hygiene(some).on('error', function (err) {
console.log(err);
console.error();
console.error(err);
process.exit(1);
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册