config: expand comment [skip ci]

This commit is contained in:
leo 2023-05-13 21:33:55 +02:00
parent 3a86905b14
commit ac4cc4ad48
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -86,9 +86,17 @@ func Load(conf string, isPath bool) (*Config, error) {
}
}
// only return now, one we had a chance to print the loaded config (as
// would be the case if the config adhered to the schema but our type
// definition above didn't - "don't know how to decode <nil> into ...")
// only return now (if err), after we've had the chance to print the loaded
// config, as would be the case if the config *did* adhere to the schema imported
// but app's Config type definition above didn't - "don't know how to
// decode <nil> into ..." is the most likely outcome in that case and it
// could be the product of (at least) three things:
// * completely wrong config not following the schema
// * config is following a newer schema than the app supports
// * config is following an older schema than the app supports
//
// NOTE: for the most part the only thing checked above would be adherence
// to config schema (apart from *some* value validation).
if err != nil {
return nil, err
}