diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-13 01:00:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-12-13 22:45:55 +0100 |
| commit | 68030541e693ec0184a9e47875544566b858c19f (patch) | |
| tree | 2c3002e8d30051a7379aea197c9d587f910bcfcb /src/lib | |
| parent | 89547a4110fcee9081a22ae206bd4367e736688c (diff) | |
Throw a more appropriate exception.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/emailer.cc | 2 |
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); |
