Skip to content

Commit eaceb9b

Browse files
fix clean error log
1 parent 393573e commit eaceb9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/processor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = class Processor {
3232
file.getOutputPath(),
3333
JSON.stringify(file.getContent(), null, 2),
3434
{ encoding: 'UTF-8'},
35-
(e) => { console.log(chalk.red(` >>>>> error ${e}`)); }
35+
(e) => { e && console.log(chalk.red(` >>>>> error ${e}`)); }
3636
);
3737
});
3838
}

0 commit comments

Comments
 (0)