feat(doctor): detects undecoded config keys
This commit is contained in:
parent
df70be2c4f
commit
4bd45e7d3c
3 changed files with 52 additions and 10 deletions
|
|
@ -161,6 +161,12 @@ func runDoctor(w io.Writer) bool {
|
|||
}
|
||||
}
|
||||
|
||||
// 7b. Unrecognised config keys
|
||||
if len(configUndecodedKeys) > 0 {
|
||||
emit("WARN", fmt.Sprintf("Unrecognised config key(s) (ignored):"))
|
||||
tree(configUndecodedKeys)
|
||||
}
|
||||
|
||||
// 8. Data directory
|
||||
store := &Store{}
|
||||
dataDir, err := store.path()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue