Skip to content

Commit c3e96ea

Browse files
Merge pull request #21 from eugene-matvejev/v0.1.8.1
highlight error from entrypoint [index.js] in red
2 parents 34dfb36 + db95b2d commit c3e96ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const fs = require('fs');
4+
const chalk = require('chalk');
45
const Processor = require('./src/processor');
56

67
let packageJsonPath = `${process.cwd()}/package.json`,
@@ -24,7 +25,7 @@ try {
2425
processor.process();
2526
processor.write();
2627
} catch (e) {
27-
console.log(`
28+
console.log(chalk.red(`
2829
${e}
2930
3031
example of package.json:
@@ -43,5 +44,5 @@ try {
4344
]
4445
}
4546
}
46-
`)
47+
`));
4748
}

0 commit comments

Comments
 (0)