Skip to content

Commit

Permalink
Revert "Fix setting error message in exception"
Browse files Browse the repository at this point in the history
This reverts commit bc440f5.
  • Loading branch information
slusarz committed Feb 17, 2014
1 parent ebcf0ca commit e52c5e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imp/lib/Imap.php
Expand Up @@ -289,7 +289,7 @@ public function createImapObject($config, $imap = true)
return $this->_ob;
} catch (Horde_Imap_Client_Exception $e) {
Horde::log($e->raw_msg);
throw new IMP_Imap_Exception($e->getMessage());
throw new IMP_Imap_Exception($e);
}
}

Expand Down Expand Up @@ -707,7 +707,7 @@ public function __call($method, $params)
try {
$result = call_user_func_array(array($this->_ob, $method), $params);
} catch (Horde_Imap_Client_Exception $e) {
$error = new IMP_Imap_Exception($e->getMessage());
$error = new IMP_Imap_Exception($e);
if ($auth_e = $error->authException(false)) {
throw $auth_e;
}
Expand Down

0 comments on commit e52c5e4

Please sign in to comment.