From d2fe83dc5c0b32dfbe45e77817478e06f928ff8a Mon Sep 17 00:00:00 2001 From: Ivan Daniluk Date: Fri, 4 May 2018 11:10:18 +0200 Subject: whisper/mailserver: pass init error to the caller (#16671) * whisper/mailserver: pass init error to the caller * whisper/mailserver: add returns to fmt.Errorf * whisper/mailserver: check err in mailserver init test --- cmd/wnode/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmd/wnode/main.go') diff --git a/cmd/wnode/main.go b/cmd/wnode/main.go index 988c50ce3..5031a088c 100644 --- a/cmd/wnode/main.go +++ b/cmd/wnode/main.go @@ -271,7 +271,9 @@ func initialize() { if *mailServerMode { shh.RegisterServer(&mailServer) - mailServer.Init(shh, *argDBPath, msPassword, *argServerPoW) + if err := mailServer.Init(shh, *argDBPath, msPassword, *argServerPoW); err != nil { + utils.Fatalf("Failed to init MailServer: %s", err) + } } server = &p2p.Server{ -- cgit v1.2.3