1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-08 22:36:49 +02:00

Update pkg/config/app_config.go

Print out error to narrow down the search

Co-authored-by: Ryoga <eial5q265e5+github@gmail.com>
This commit is contained in:
Luka Markušić
2022-05-31 13:28:24 +02:00
committed by GitHub
parent abeb03b090
commit abf203e012

View File

@ -168,7 +168,7 @@ func loadUserConfig(configFiles []string, base *UserConfig) (*UserConfig, error)
}
if err := yaml.Unmarshal(content, base); err != nil {
return nil, fmt.Errorf("The config at `%s` couldn't be parsed, please inspect it before opening up an issue.", path)
return nil, fmt.Errorf("The config at `%s` couldn't be parsed, please inspect it before opening up an issue.\n%w", path, err)
}
}