We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2d426d7 + 5b35cc5 commit 1b23d65Copy full SHA for 1b23d65
src/cli.js
@@ -30,9 +30,11 @@ function writeFile(f) {
30
.then(content => {
31
if (!argv.s) {
32
console.log('Wrote ' + chalk.green(content.outputFilePath));
33
- content.messageList.forEach(message => {
34
- console.warn(chalk.yellow('[Warn] ' + message));
35
- });
+ if (content.messageList && content.messageList.length) {
+ content.messageList.forEach(message => {
+ console.warn(chalk.yellow('[Warn] ' + message));
36
+ });
37
+ }
38
}
39
})
40
.catch(reason => console.error(chalk.red('[Error] ' + reason)));
0 commit comments