summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-12-13 01:00:45 +0100
committerCarl Hetherington <cth@carlh.net>2021-12-13 01:00:45 +0100
commit9a9a660dd61988a3091c31483b2d32fd136e820e (patch)
treeda5e6868151d8b063e16d3ecb55ada3515cddaf2
parent964ddc8b2a46cf386b25321257ad87aa0985c121 (diff)
Throw a more appropriate exception.
-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 6ef23c3e0..7bed7ef97 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 KDMError (_("Failed to send email"), curl_easy_strerror (r));
+ throw NetworkError (_("Failed to send email"), curl_easy_strerror(r));
}
curl_slist_free_all (recipients);