Skip to content

Commit

Permalink
Merge pull request #833 from josaphatim/account-as-part-of-message
Browse files Browse the repository at this point in the history
Added imap account name as part of error message
  • Loading branch information
kroky authored Dec 1, 2023
2 parents 521a39f + 9327c75 commit a8d6826
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/sievefilters/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,11 @@ public function init($user_config = null, $imap_account = null)
$client->connect($imap_account['user'], $imap_account['pass'], $sieve_tls, "", "PLAIN");
return $client;
} else {
throw new Exception('Invalid config host');
$errorMsg = 'Invalid config host';
if (isset($imap_account['name'])) {
$errorMsg .= ' for ' . $imap_account['name'];
}
throw new Exception($errorMsg);
}
}
}

0 comments on commit a8d6826

Please sign in to comment.