Skip to content

Commit

Permalink
Fixing handler scope for error with line number test and encoding e…
Browse files Browse the repository at this point in the history
…rror buffer to string.
  • Loading branch information
arboleya committed Dec 8, 2012
1 parent 69ce4ee commit 604a3fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/error_with_line_number.coffee
Expand Up @@ -25,8 +25,8 @@ vows.describe( 'Error with line number' )
unless report_msg?
report_msg = data.toString().stripColors.replace /\n/g, ""

toaster.stderr.on 'data', ( error )->
@callback error
toaster.stderr.on 'data', ( error )=>
@callback error.toString()

toaster.on 'exit', (data)=>
@callback null, report_msg
Expand Down

0 comments on commit 604a3fd

Please sign in to comment.