mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 16:33:47 +03:00
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 ..."
This commit is contained in:
parent
40163bd145
commit
5baeea4746
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue