From 6d13ca184657383caf4a9fca19806f31a17318f1 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 02 Dec 2009 14:31:46 -0500 Subject: [PATCH] - add line number to some error messages --- program/steps/mail/sendmail.inc | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index e8445aa..560393c 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -534,8 +534,9 @@ // 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 @@ // 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); } } -- Gitblit v1.9.1