From e1cb19da0a2eba85d1b2afa4b7e3ebb70e8b5ac0 Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Tue, 12 Nov 2019 15:36:49 -0800 Subject: [PATCH] Exit 1 on error --- cmd/lotus-storage-miner/main.go | 2 +- cmd/lotus/main.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/lotus-storage-miner/main.go b/cmd/lotus-storage-miner/main.go index f8bf2aac1..ca83189b9 100644 --- a/cmd/lotus-storage-miner/main.go +++ b/cmd/lotus-storage-miner/main.go @@ -71,6 +71,6 @@ func main() { if err := app.Run(os.Args); err != nil { log.Warn(err) - return + os.Exit(1) } } diff --git a/cmd/lotus/main.go b/cmd/lotus/main.go index b9ed5fb1b..1c0cae606 100644 --- a/cmd/lotus/main.go +++ b/cmd/lotus/main.go @@ -69,6 +69,7 @@ func main() { Message: err.Error(), }) log.Warn(err) + os.Exit(1) } return }