From adae5d0707520f9c60a4745bc90064fe5dd03b05 Mon Sep 17 00:00:00 2001 From: Joshua Colvin Date: Thu, 25 Aug 2022 13:10:30 -0700 Subject: [PATCH] Fix relay issue printing help message --- cmd/relay/relay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/relay/relay.go b/cmd/relay/relay.go index 29037cd76f..87998c633a 100644 --- a/cmd/relay/relay.go +++ b/cmd/relay/relay.go @@ -46,7 +46,7 @@ func startup() error { if err != nil || len(relayConfig.Node.Feed.Input.URLs) == 0 || relayConfig.Node.Feed.Input.URLs[0] == "" || relayConfig.L2.ChainId == 0 { fmt.Printf("\nrevision: %v, vcs.time: %v\n", vcsRevision, vcsTime) printSampleUsage() - if !strings.Contains(err.Error(), "help requested") { + if err != nil && !strings.Contains(err.Error(), "help requested") { fmt.Printf("%s\n", err.Error()) }