diff --git a/bchd.go b/bchd.go index 2522f9c033..d8e05138a4 100644 --- a/bchd.go +++ b/bchd.go @@ -329,7 +329,6 @@ func main() { // Work around defer not working after os.Exit() if err := bchdMain(nil); err != nil { - fmt.Fprintf(os.Stderr, "error running node: %v\n", err) os.Exit(1) } } diff --git a/config.go b/config.go index fc19357ec4..8b00f85a68 100644 --- a/config.go +++ b/config.go @@ -31,6 +31,7 @@ import ( "github.com/gcash/bchd/peer" "github.com/gcash/bchd/version" "github.com/gcash/bchutil" + flags "github.com/jessevdk/go-flags" )