Replaced console.log with console.error

This commit is contained in:
Brian Vaughn
2017-11-07 10:36:23 +00:00
parent 3f6854d081
commit 17a126e5e1

View File

@@ -21,7 +21,7 @@ module.exports = ({markdownAST}) => {
// Verify that the specified example file exists.
const filePath = join(__dirname, `../../${href}.js`);
if (!existsSync(filePath)) {
console.log(
console.error(
`Invalid Codepen link specified; no such file "${filePath}"`,
);
process.exit(1);