Skip to content

Commit

Permalink
Improve error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Jun 21, 2019
1 parent e7fe303 commit 9c61dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/org/openpsa/invoices/invoice/pdf.php
Expand Up @@ -103,7 +103,7 @@ public function render_and_attach()
$attachment = $this->invoice->create_attachment($filename, $this->invoice->get_label(), "application/pdf"); $attachment = $this->invoice->create_attachment($filename, $this->invoice->get_label(), "application/pdf");
if ( !$attachment if ( !$attachment
|| !$this->invoice->set_parameter("midcom.helper.datamanager2.type.blobs", "guids_pdf_file", $attachment->guid . ":" . $attachment->guid)) { || !$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());
} }
} }


Expand Down

0 comments on commit 9c61dea

Please sign in to comment.