aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorIvan Daniluk <ivan.daniluk@gmail.com>2018-05-04 17:10:18 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-04 17:10:18 +0800
commitd2fe83dc5c0b32dfbe45e77817478e06f928ff8a (patch)
tree65674f324d9006655eafc0dcf4c8c22296fba086 /cmd
parent16f3c31773c6daf57afe718719821a897fa1a2c7 (diff)
downloadgo-tangerine-d2fe83dc5c0b32dfbe45e77817478e06f928ff8a.tar.gz
go-tangerine-d2fe83dc5c0b32dfbe45e77817478e06f928ff8a.tar.zst
go-tangerine-d2fe83dc5c0b32dfbe45e77817478e06f928ff8a.zip
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
Diffstat (limited to 'cmd')
-rw-r--r--cmd/wnode/main.go4
1 files changed, 3 insertions, 1 deletions
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{