summaryrefslogtreecommitdiffstats
path: root/src/mail
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2018-07-01 17:22:56 +0200
committerSebastian Reichel <sre@ring0.de>2018-07-15 22:59:57 +0200
commite821aca14ee3c59380c82e32c9cfcdbcca144a96 (patch)
tree7c9f36a5049590395cce6e0c6721f43faf99dab2 /src/mail
parent98dda4beafd082b96c6dc8b3f44e1589a39069c1 (diff)
downloadserial-barcode-scanner-e821aca14ee3c59380c82e32c9cfcdbcca144a96.tar.bz2
all: fix all remaining warnings
Diffstat (limited to 'src/mail')
-rw-r--r--src/mail/mailer.vala12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mail/mailer.vala b/src/mail/mailer.vala
index 3d7a996..642ceaa 100644
--- a/src/mail/mailer.vala
+++ b/src/mail/mailer.vala
@@ -172,12 +172,16 @@ public class MailerImplementation {
message.set_reverse_path(current_mail.get_reverse_path());
int result = session.start_session();
- if(result == 0)
- throw new IOError.FAILED(_("eSMTP: Start Session failed!"));
+ if(result == 0) {
+ stderr.printf(_("eSMTP: Start Session failed!"));
+ return false;
+ }
unowned Smtp.Status status = message.transfer_status();
- if(status.code < 200 || status.code >= 300)
- throw new IOError.FAILED(_("Reply from SMTP-Server: %s"), status.text);
+ if(status.code < 200 || status.code >= 300) {
+ stderr.printf(_("Reply from SMTP-Server: %s"));
+ return false;
+ }
current_mail = null;