From 5baeea4746ccf2d3c8d45676b08675740e4ce17a Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Sat, 24 Jun 2023 10:12:25 +0200 Subject: [PATCH] tweak to error message when loading configuration file instead of saying "parsing config/mox.conf: :93: unknown key ...", make it "parsing config/mox.conf:93: unknown key ..." --- mox-/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mox-/config.go b/mox-/config.go index cd47938..ae9c2d5 100644 --- a/mox-/config.go +++ b/mox-/config.go @@ -401,7 +401,7 @@ func ParseConfig(ctx context.Context, p string, checkOnly, doLoadTLSKeyCerts, ch } defer f.Close() if err := sconf.Parse(f, &c.Static); err != nil { - return nil, []error{fmt.Errorf("parsing %s: %v", p, err)} + return nil, []error{fmt.Errorf("parsing %s%v", p, err)} } if xerrs := PrepareStaticConfig(ctx, p, c, checkOnly, doLoadTLSKeyCerts); len(xerrs) > 0 {