Fix error reporting.
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 6 Apr 2009 20:45:47 +0000 (14:45 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 6 Apr 2009 22:30:35 +0000 (16:30 -0600)
imp/compose.php

index 158d0e8..8eb967f 100644 (file)
@@ -437,7 +437,8 @@ case 'send_message':
     } catch (IMP_Compose_Exception $e) {
         $get_sig = false;
         $code = $e->getCode();
-        $notification->push($e, strpos($code, 'horde.') === 0 ? $code : 'horde.error');
+        $notification->push($e->getMessage(), strpos($code, 'horde.') === 0 ? $code : 'horde.error');
+
         // TODO
         switch ($e->encrypt) {
         case 'pgp_symmetric_passphrase_dialog':