projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bd7721
)
Give more details when failing to send emails.
author
Carl Hetherington
<cth@carlh.net>
Sun, 13 Oct 2024 19:15:58 +0000
(21:15 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 13 Oct 2024 19:15:58 +0000
(21:15 +0200)
src/lib/email.cc
patch
|
blob
|
history
diff --git
a/src/lib/email.cc
b/src/lib/email.cc
index 8557b40e0c808cf06f2e10b3e5d32bebd4dd0261..e2beb8f37dc0add5c6d6ad72310b1c6d7cfe0a82 100644
(file)
--- 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);