Skip to content
Permalink
Browse files

Improve error reporting

  • Loading branch information...
flack committed Jun 21, 2019
1 parent e7fe303 commit 9c61deaf1109011d66ecf77ec941c6e1cd7e5280
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/org/openpsa/invoices/invoice/pdf.php
@@ -103,7 +103,7 @@ public function render_and_attach()
$attachment = $this->invoice->create_attachment($filename, $this->invoice->get_label(), "application/pdf");
if ( !$attachment
|| !$this->invoice->set_parameter("midcom.helper.datamanager2.type.blobs", "guids_pdf_file", $attachment->guid . ":" . $attachment->guid)) {
throw new midcom_error("Failed to create invoice attachment for pdf");
throw new midcom_error("Failed to create invoice attachment for pdf: " . midcom_connection::get_error_string());
}
}

0 comments on commit 9c61dea

Please sign in to comment.
You can’t perform that action at this time.