Skip to content

Commit

Permalink
Add warning support
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed May 1, 2023
1 parent b365a67 commit 1864aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function processResults (results) {

output += table(
messages.map(function (message) {
const messageType = chalk.red('error')
const messageType = message.type === 'warning' ? chalk.yellow('warning') : chalk.red('error')

return [
'',
Expand Down

0 comments on commit 1864aec

Please sign in to comment.