From b0b3bce69358f5bed078c5cda76cd912aaf390f2 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 16 Dec 2008 23:07:16 -0700 Subject: [PATCH] Fix error message reporting. --- imp/lib/Message.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/lib/Message.php b/imp/lib/Message.php index 7a5c196ef..5b2219dcd 100644 --- a/imp/lib/Message.php +++ b/imp/lib/Message.php @@ -137,7 +137,7 @@ class IMP_Message $imp_mailbox->removeMsgs(array($mbox => $msgIndices)); } } catch (Horde_Imap_Client_Exception $e) { - $notification->push(sprintf($message, IMP::displayFolder($mbox), IMP::displayFolder($targetMbox)) . ': ' . imap_last_error(), 'horde.error'); + $notification->push(sprintf($message, IMP::displayFolder($mbox), IMP::displayFolder($targetMbox)) . ': ' . $e->getMessage(), 'horde.error'); $return_value = false; } } @@ -554,7 +554,7 @@ class IMP_Message try { $imp_imap->ob->store($mbox, array_merge($action_array, array('ids' => $msgIndices))); } catch (Horde_Imap_Client_Exception $e) { - $notification->push(sprintf(_("There was an error flagging messages in the folder \"%s\". This is what the server said"), IMP::displayFolder($mbox)) . ': ' . imap_last_error(), 'horde.error'); + $notification->push(sprintf(_("There was an error flagging messages in the folder \"%s\". This is what the server said"), IMP::displayFolder($mbox)) . ': ' . $e->getMessage(), 'horde.error'); return false; } } -- 2.11.0