summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-12-02 19:31:46 +0000
committeralecpl <alec@alec.pl>2009-12-02 19:31:46 +0000
commit6d13ca184657383caf4a9fca19806f31a17318f1 (patch)
treeb7680f271c246e1325d46f952486f39aafb953ec /program
parentd079afd44fdfca34631ca6d0c85d406aee25b3bd (diff)
- add line number to some error messages
Diffstat (limited to 'program')
-rw-r--r--program/steps/mail/sendmail.inc10
1 files changed, 6 insertions, 4 deletions
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);
}
}