X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Femailer.cc;fp=src%2Flib%2Femailer.cc;h=f5812f0c20867eef7e79265c0862d2b400f29569;hb=531f206850224bf416a4d9854db18caa9c7b33aa;hp=7bed7ef973093939d5f293347981ec0ee396f73a;hpb=d98702bd89f418d03d3184732edff32d2ca213be;p=dcpomatic.git 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);