Skip to content

Commit

Permalink
Fix : ReferenceError: err is not defined (#1254)
Browse files Browse the repository at this point in the history
Would fix an error I had 
It catch an error "e" but try to display "err"
  • Loading branch information
franxois authored and vjeux committed Apr 13, 2017
1 parent 6ecbb99 commit 19b7feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/prettier.js
Expand Up @@ -228,7 +228,7 @@ if (stdin) {
// Add newline to split errors from filename line.
process.stdout.write("\n");

console.error("Unable to read file: " + filename + "\n" + err);
console.error("Unable to read file: " + filename + "\n" + e);
// Don't exit the process if one file failed
process.exitCode = 2;
return;
Expand Down

0 comments on commit 19b7feb

Please sign in to comment.