Skip to content

Commit 57bf287

Browse files
error in index.js
1 parent 6a38fa6 commit 57bf287

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)