summaryrefslogtreecommitdiff
path: root/src/lib/emailer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-12-20 21:45:21 +0100
committerCarl Hetherington <cth@carlh.net>2021-12-20 21:45:21 +0100
commit95ba4aff616a9e0c6ca85e7a3c86a5606afa2e45 (patch)
treef7566be6cb57149c525fd126e838a87b933c4445 /src/lib/emailer.cc
parent915128d7a79dc0cb180489ba2110841d0fe17907 (diff)
Tidy up NetworkError.
Diffstat (limited to 'src/lib/emailer.cc')
-rw-r--r--src/lib/emailer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/emailer.cc b/src/lib/emailer.cc
index 7bed7ef97..f5812f0c2 100644
--- a/src/lib/emailer.cc
+++ b/src/lib/emailer.cc
@@ -231,7 +231,7 @@ Emailer::send (string server, int port, EmailProtocol protocol, string user, str
auto const r = curl_easy_perform (curl);
if (r != CURLE_OK) {
- throw NetworkError (_("Failed to send email"), curl_easy_strerror(r));
+ throw NetworkError (_("Failed to send email"), string(curl_easy_strerror(r)));
}
curl_slist_free_all (recipients);