From 6792af6846d1200c564a4ad601a637535dd56c5b Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Mon, 8 Mar 2021 13:46:21 -0600 Subject: [PATCH] No context needed for this error --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index c989dfe..0e7322f 100644 --- a/main.go +++ b/main.go @@ -246,7 +246,7 @@ func Main(config *Config, configTest bool, buildVersion string, logger *logrus.L // fatal if am_lighthouse is enabled but we are using an ephemeral port if amLighthouse && (config.GetInt("listen.port", 0) == 0) { - return nil, NewContextualError("lighthouse.am_lighthouse enabled on node but no port number is set in config", nil, err) + return nil, errors.New("lighthouse.am_lighthouse enabled on node but no port number is set in config") } // warn if am_lighthouse is enabled but upstream lighthouses exists