1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-02-09 13:47:11 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
}
}