Skip to content

Commit e414c47

Browse files
committed
Use passed in log() if available
1 parent 003924a commit e414c47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ async function runForPath(path, options = {}) {
2727
transform(path);
2828
} catch (error) {
2929
if (error instanceof SilentError) {
30-
console.log(chalk.yellow(`${chalk.dim(path)}: ${error.message}`));
30+
log(chalk.yellow(`${chalk.dim(path)}: ${error.message}`));
3131
} else {
32-
console.log(chalk.red(`${chalk.dim(path)}: ${error.stack}`));
32+
log(chalk.red(`${chalk.dim(path)}: ${error.stack}`));
3333
}
3434
}
3535
}

0 commit comments

Comments
 (0)