Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/IMAP
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-06-15 17:58:17 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-06-15 17:58:17 +0300
commit26dde132d2b1d962f48481864fe734804a3209ec (patch)
tree166befe22f709b4ae2cb5b6e7bea635500304fbb /lib/IMAP
parent9ee4231b6774d1fac8e8bc60eba1b74c82e0cd90 (diff)
Specify which account had a sync error
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/IMAP')
-rw-r--r--lib/IMAP/MailboxSync.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/IMAP/MailboxSync.php b/lib/IMAP/MailboxSync.php
index 9bb69d1d6..dc61307be 100644
--- a/lib/IMAP/MailboxSync.php
+++ b/lib/IMAP/MailboxSync.php
@@ -41,6 +41,7 @@ use OCA\Mail\Db\Mailbox;
use OCA\Mail\Db\MailboxMapper;
use OCA\Mail\Folder;
use OCP\AppFramework\Utility\ITimeFactory;
+use function sprintf;
class MailboxSync {
@@ -104,7 +105,7 @@ class MailboxSync {
$this->folderMapper->getFoldersStatus($folders, $client);
} catch (Horde_Imap_Client_Exception $e) {
throw new ServiceException(
- "IMAP error: " . $e->getMessage(),
+ sprintf("IMAP error synchronizing account %d: %s", $account->getId(), $e->getMessage()),
(int)$e->getCode(),
$e
);