projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5947a7e
)
Log email transcription even if ::send throws an exception.
author
Carl Hetherington
<cth@carlh.net>
Fri, 8 Apr 2016 17:11:52 +0000
(18:11 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 8 Apr 2016 17:11:52 +0000
(18:11 +0100)
src/lib/cinema_kdms.cc
patch
|
blob
|
history
diff --git
a/src/lib/cinema_kdms.cc
b/src/lib/cinema_kdms.cc
index 9fda6e2e9ca8132a711194580b785e6247f18054..d7495e9ac2cab7217539071f96ad11038e5b3de1 100644
(file)
--- a/
src/lib/cinema_kdms.cc
+++ b/
src/lib/cinema_kdms.cc
@@
-169,7
+169,15
@@
CinemaKDMs::email (
email.add_attachment (zip_file, name, "application/zip");
Config* c = Config::instance ();
- email.send (c->mail_server(), c->mail_port(), c->mail_user(), c->mail_password());
+
+ try {
+ email.send (c->mail_server(), c->mail_port(), c->mail_user(), c->mail_password());
+ } catch (...) {
+ if (log) {
+ log->log (email.notes(), LogEntry::TYPE_DEBUG_EMAIL);
+ }
+ throw;
+ }
if (log) {
log->log (email.notes(), LogEntry::TYPE_DEBUG_EMAIL);