Add and fix errorlint
This commit is contained in:
parent
2dde1242cf
commit
0c45f8d252
4 changed files with 5 additions and 6 deletions
|
@ -53,7 +53,7 @@ func LoadConfig(path string) error {
|
|||
viper.SetDefault("cli.timeout", "5s")
|
||||
|
||||
if err := viper.ReadInConfig(); err != nil {
|
||||
return fmt.Errorf("Fatal error reading config file: %s \n", err)
|
||||
return fmt.Errorf("Fatal error reading config file: %w", err)
|
||||
}
|
||||
|
||||
// Collect any validation errors and return them all at once
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue