Skip to content

Commit

Permalink
raise command if command fails
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser authored and jdpace committed Jul 16, 2010
1 parent 0446811 commit f0f0b33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pdfkit/pdfkit.rb
Expand Up @@ -58,6 +58,8 @@ def to_pdf
pdf.close_write pdf.close_write
result = pdf.gets(nil) result = pdf.gets(nil)
pdf.close_read pdf.close_read

raise "command failed: #{command}" if result.to_s.strip.empty?
return result return result
end end


Expand Down

0 comments on commit f0f0b33

Please sign in to comment.