Skip to content

Commit

Permalink
Fix setting error message in exception
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Feb 6, 2014
1 parent cdbb53e commit bc440f5
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);
throw new IMP_Imap_Exception($e->getMessage());
}
}

Expand Down Expand Up @@ -708,7 +708,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);
$error = new IMP_Imap_Exception($e->getMessage());
if ($auth_e = $error->authException(false)) {
throw $auth_e;
}
Expand Down

0 comments on commit bc440f5

Please sign in to comment.