diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-01-28 11:27:16 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-01-28 11:27:16 +0000 |
| commit | f01835508614938c2cf0382b82ea62c2c4dedd16 (patch) | |
| tree | c08f29e860b3c2cc281488a2579d7d84312151cd /roundcubemail/program/steps/mail/sendmail.inc | |
| parent | 7a3551691e2eb17b7fe9f000d02f53c1742e05a5 (diff) | |
- add file/line definitions to raise_error() calls
git-svn-id: https://svn.roundcube.net/trunk@3231 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/sendmail.inc')
| -rw-r--r-- | roundcubemail/program/steps/mail/sendmail.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/sendmail.inc b/roundcubemail/program/steps/mail/sendmail.inc index 230572f66..589c9af7f 100644 --- a/roundcubemail/program/steps/mail/sendmail.inc +++ b/roundcubemail/program/steps/mail/sendmail.inc @@ -30,8 +30,10 @@ $savedraft = !empty($_POST['_draft']) ? TRUE : FALSE; /****** checks ********/ if (!isset($_SESSION['compose']['id'])) { - raise_error(array('code' => 500, 'type' => 'smtp', 'file' => __FILE__, 'message' => "Invalid compose ID"), true, false); - console("Sendmail error", $_SESSION['compose']); + raise_error(array('code' => 500, 'type' => 'smtp', + 'file' => __FILE__, 'line' => __LINE__, + 'message' => "Invalid compose ID"), true, false); + $OUTPUT->show_message("An internal error occured. Please try again.", 'error'); $OUTPUT->send('iframe'); } |
