~taiite/public-inbox

[PATCH senpai v4 1/2] config: generalize config load error message

Details
Message ID
<0101017d48f07bbc-61f31f54-5f52-4ecb-b252-8756bc397e45-000000@us-west-2.amazonses.com>
DKIM signature
pass
Download raw message
Patch: +1 -1
---
 config.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.go b/config.go
index 8c8181d..be6dcbc 100644
--- a/config.go
+++ b/config.go
@@ -119,7 +119,7 @@ func LoadConfigFile(filename string) (cfg Config, err error) {

	cfg, err = ParseConfig(buf)
	if err != nil {
		return cfg, fmt.Errorf("invalid content found in the file: %s", err)
		return cfg, fmt.Errorf("error loading config file: %s", err)
	}
	return
}
-- 
2.33.1
Reply to thread Export thread (mbox)