summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-10-13 21:15:58 +0200
committerCarl Hetherington <cth@carlh.net>2024-10-13 21:15:58 +0200
commit638ce5e0b3bfc690eaf13ecdf82b6cb8817d1585 (patch)
tree20eeb243c1d33edca3ae506f6957aa6a39e6a9ad
parent2bd7721548534b14e98a9d9d55a22e7922629b92 (diff)
Give more details when failing to send emails.
-rw-r--r--src/lib/email.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/email.cc b/src/lib/email.cc
index 8557b40e0..e2beb8f37 100644
--- a/src/lib/email.cc
+++ b/src/lib/email.cc
@@ -236,7 +236,7 @@ Email::send(string server, int port, EmailProtocol protocol, string user, string
auto const r = curl_easy_perform (curl);
if (r != CURLE_OK) {
- throw NetworkError (_("Failed to send email"), string(curl_easy_strerror(r)));
+ throw NetworkError(_("Failed to send email"), String::compose("%1 sending to %2:%3", curl_easy_strerror(r), server, port));
}
curl_slist_free_all (recipients);