@@ -132,7 +132,8 @@ discard block |
||
132 | 132 | try { |
133 | 133 | $pdf_helper->render_and_attach(); |
134 | 134 | return $this->reply(true, $this->_l10n->get('pdf created')); |
135 | - } catch (midcom_error $e) { |
|
135 | + } |
|
136 | + catch (midcom_error $e) { |
|
136 | 137 | return $this->reply(false, $this->_l10n->get('pdf creation failed') . ': ' . $e->getMessage()); |
137 | 138 | } |
138 | 139 | } |
@@ -143,7 +144,8 @@ discard block |
||
143 | 144 | try { |
144 | 145 | $pdf_helper->render_and_attach('reminder'); |
145 | 146 | return $this->reply(true, $this->_l10n->get('payment warning pdf created')); |
146 | - } catch (midcom_error $e) { |
|
147 | + } |
|
148 | + catch (midcom_error $e) { |
|
147 | 149 | return $this->reply(false, $this->_l10n->get('payment warning pdf creation failed') . ': ' . $e->getMessage()); |
148 | 150 | } |
149 | 151 | } |