This commit is contained in:
Jeremy Ashkenas 2010-02-12 23:10:51 -05:00
parent d9fba94983
commit ee1c9b284a
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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()