mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-11 18:17:40 +00:00
Add and fix errorlint
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user