From: Carl Hetherington Date: Mon, 13 Dec 2021 00:00:45 +0000 (+0100) Subject: Throw a more appropriate exception. X-Git-Tag: checked-for-v2.16.x~146 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=9a9a660dd61988a3091c31483b2d32fd136e820e;p=dcpomatic.git Throw a more appropriate exception. --- 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);