Skip to content

Commit

Permalink
Don't throw on stderr output, which might be just warnings from prepr…
Browse files Browse the repository at this point in the history
…ocessors

Thanks @ddlsmurf
  • Loading branch information
jacobrask committed Apr 23, 2012
1 parent e7adab1 commit 6634d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languages.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Language
else
preCmd = "#{@preprocessor.cmd} #{@preprocessor.args.join ' '} #{filename}"
exec preCmd, (err, stdout, stderr) ->
if err? or stderr isnt ''
if err?
return cb new Error("There was an error processing #{filename}.\n#{err.message or stderr}")
cb err, stdout
else
Expand Down

2 comments on commit 6634d69

@ddlsmurf
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@jacobrask
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your patience and feedback on StyleDocco, it's really appreciated and helps gradually improve it :)

Please sign in to comment.