Hi,

When something is wrong with calling external binary to render PDF and the command gives no output on standard error it would be very helpful to give admin a hint what exactly command it was.

Could someone with repo write access change one line in print/print_pdf/lib_handlers/print_pdf_wkhtmltopdf/print_pdf_wkhtmltopdf.pages.inc

From:

$error = 'No stderr output available.';

To:

$error = 'No stderr output available. Command was: ' . $cmd;

Comments

jcnventura’s picture

Status: Active » Needs review
jcnventura’s picture

Status: Needs review » Fixed

Thanks for the suggestion. The whole watchdog message was a bit off. I now include the $cmd in the message even if it returned an error.

http://drupalcode.org/project/print.git/commit/abb5934

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.