From 19b7febe9ea12b278e23400c19886ff46ad0a361 Mon Sep 17 00:00:00 2001 From: franxois Date: Fri, 14 Apr 2017 00:49:53 +0200 Subject: [PATCH] Fix : ReferenceError: err is not defined (#1254) Would fix an error I had It catch an error "e" but try to display "err" --- bin/prettier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/prettier.js b/bin/prettier.js index 73cc42815..690a3bcf4 100755 --- a/bin/prettier.js +++ b/bin/prettier.js @@ -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;