Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

raise command if command fails

  • Loading branch information...
commit f0f0b33b520a4c4c08efcecaca473737750acd92 1 parent 0446811
Michael Grosser grosser authored jdpace committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/pdfkit/pdfkit.rb
2  lib/pdfkit/pdfkit.rb
View
@@ -58,6 +58,8 @@ def to_pdf
pdf.close_write
result = pdf.gets(nil)
pdf.close_read
+
+ raise "command failed: #{command}" if result.to_s.strip.empty?
return result
end
Please sign in to comment.
Something went wrong with that request. Please try again.