Skip to content

Commit

Permalink
fix: log errors to stderr instead of stdout
Browse files Browse the repository at this point in the history
Previously, any errors found by running mmdc
were output to stdout using console.log,
when they should have instead been logged to
console.error.
  • Loading branch information
aloisklink authored and MindaugasLaganeckas committed Jun 27, 2022
1 parent 985ce30 commit c811fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -9,7 +9,7 @@ import puppeteer from 'puppeteer'
import pkg from './package.json'

const error = message => {
console.log(chalk.red(`\n${message}\n`))
console.error(chalk.red(`\n${message}\n`))
process.exit(1)
}

Expand Down

0 comments on commit c811fd9

Please sign in to comment.