~taiite/public-inbox

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

Details
Message ID
<0101017d3f8aba2e-6f69d6f6-e589-4919-8816-6db05acfcb4a-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)