Add PDF generation error, log command properly.