mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +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()
|
defer f.Close()
|
||||||
if err := sconf.Parse(f, &c.Static); err != nil {
|
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 {
|
if xerrs := PrepareStaticConfig(ctx, p, c, checkOnly, doLoadTLSKeyCerts); len(xerrs) > 0 {
|
||||||
|
|
Loading…
Reference in a new issue