Closed josecoelho closed 11 years ago
I've improved that by adding to the render method ability to throw out RGhost::RenderException
in case of any error.
I also created a flag RGhost::Config::GS[:raise_on_error]
to keep backward compatibility, default is true
.
Changes on https://github.com/shairontoledo/rghost/commit/e2cdcd9e8c72d178625a69f0bef167e03a833fb9
New gem 0.9.1 has been created.
Thanks,
Hi, I'm with a problem on my production enviroment.
I receive the error without any explanation: NoMethodError (private method
readlines' called for nil:NilClass): app/admin/invoice_items.rb:63:in
gen_boleto'Looking on the code of RGhost, I found a problem on method render_stream. That ignores the possible errors ocurred on render method, and call rg.output when thats nil. It results in a nightmare error... :)
As a quick fix, I raised the errors if RGhost has errors.