lib/pdfkit/pdfkit.rb in pdfkit-0.4.5 vs lib/pdfkit/pdfkit.rb in pdfkit-0.4.6
- old
+ new
@@ -62,10 +62,10 @@
pdf.puts(@source.to_s) if @source.html?
pdf.close_write
result = pdf.gets(nil)
pdf.close_read
- raise "command failed: #{command}" if result.to_s.strip.empty?
+ raise "command failed: #{command.join(' ')}" if result.to_s.strip.empty?
return result
end
def to_file(path)
File.open(path,'w') {|file| file << self.to_pdf}
\ No newline at end of file