From ee1c9b284a55bab02710c35b53336a43b0dc0d63 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Fri, 12 Feb 2010 23:10:51 -0500 Subject: [PATCH] typo --- lib/coffee_script/command_line.js | 2 +- src/command_line.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/coffee_script/command_line.js b/lib/coffee_script/command_line.js index b285e2ea..aa102f1c 100644 --- a/lib/coffee_script/command_line.js +++ b/lib/coffee_script/command_line.js @@ -83,7 +83,7 @@ return puts(result.replace(/\n/g, '')); } }); - jsl.addListener('errror', function(result) { + jsl.addListener('error', function(result) { if (result) { return puts(result); } diff --git a/src/command_line.coffee b/src/command_line.coffee index 2a3c2ea5..dd325331 100644 --- a/src/command_line.coffee +++ b/src/command_line.coffee @@ -86,7 +86,7 @@ exports.lint: (js) -> jsl: process.createChildProcess('jsl', ['-nologo', '-stdin']) jsl.addListener 'output', (result) -> puts result.replace(/\n/g, '') if result - jsl.addListener 'errror', (result) -> + jsl.addListener 'error', (result) -> puts result if result jsl.write js jsl.close()