From 3b6a1eb1fbf97e5ff3e892db8a83ffdafcecda66 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 30 Jul 2024 08:43:40 +0200 Subject: [PATCH] more details on error --- api/src/Mail.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index 2fd51cbc0e..422de3e5b9 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -952,8 +952,9 @@ class Mail } catch (\Exception $e) { - error_log(__METHOD__.' ('.__LINE__.') '."->open connection for Server with profileID:".$_icServerID." trying to examine ($mailbox) failed!".$e->getMessage()); - throw new Exception(__METHOD__." failed to ".__METHOD__." on Profile to $_icServerID while trying to examine $mailbox:".$e->getMessage()); + _egw_log_exception($e); + throw new Exception(__METHOD__." failed to open connection on Profile to $_icServerID while trying to examine $mailbox: ".$e->getMessage(). + (!empty($e->details) ? ': '.$e->details : ''), 100, $e); } if (self::$debugTimes) self::logRunTimes($starttime,null,'ProfileID:'.$_icServerID,__METHOD__.' ('.__LINE__.') '); }