Show error from TOML library when parsing fails
This commit is contained in:
parent
78ede4a084
commit
4f964c4b2c
@ -24,7 +24,7 @@ func Main(args []string) (int, error) {
|
||||
}
|
||||
|
||||
if _, err := toml.DecodeFile(configPath, &config); err != nil {
|
||||
err = fmt.Errorf("fatal: failed to parse %s", configPath)
|
||||
err = fmt.Errorf("fatal: failed to parse %s; %w", configPath, err)
|
||||
return ExitError, err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user