diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-10-13 21:15:58 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-10-13 21:15:58 +0200 |
| commit | 638ce5e0b3bfc690eaf13ecdf82b6cb8817d1585 (patch) | |
| tree | 20eeb243c1d33edca3ae506f6957aa6a39e6a9ad /src/lib/email.cc | |
| parent | 2bd7721548534b14e98a9d9d55a22e7922629b92 (diff) | |
Give more details when failing to send emails.
Diffstat (limited to 'src/lib/email.cc')
| -rw-r--r-- | src/lib/email.cc | 2 |
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); |
