From 6d13ca184657383caf4a9fca19806f31a17318f1 Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 2 Dec 2009 19:31:46 +0000 Subject: - add line number to some error messages --- program/steps/mail/sendmail.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'program') diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index e8445aa4c..560393cc9 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -534,8 +534,9 @@ if ($store_target) // raise error if saving failed if (!$saved) { - raise_error(array('code' => 800, 'type' => 'imap', 'file' => __FILE__, - 'message' => "Could not save message in $store_target"), TRUE, FALSE); + raise_error(array('code' => 800, 'type' => 'imap', + 'file' => __FILE__, 'line' => __LINE__, + 'message' => "Could not save message in $store_target"), TRUE, FALSE); if ($savedraft) { $OUTPUT->show_message('errorsaving', 'error'); @@ -552,8 +553,9 @@ if ($store_target) // raise error if deletion of old draft failed if (!$deleted) - raise_error(array('code' => 800, 'type' => 'imap', 'file' => __FILE__, - 'message' => "Could not delete message from ".$CONFIG['drafts_mbox']), TRUE, FALSE); + raise_error(array('code' => 800, 'type' => 'imap', + 'file' => __FILE__, 'line' => __LINE__, + 'message' => "Could not delete message from ".$CONFIG['drafts_mbox']), TRUE, FALSE); } } -- cgit v1.2.3