From 638ce5e0b3bfc690eaf13ecdf82b6cb8817d1585 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 13 Oct 2024 21:15:58 +0200 Subject: Give more details when failing to send emails. --- src/lib/email.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3