Skip to content

Commit 3fcad43

Browse files
XMLHexagramsagikazarmark
authored andcommitted
update %s to %w
I apologize for my rude pr on modify readme I think it is better to use %w in fmt.Errorf instead of %s (see go doc)[https://golang.org/pkg/errors/]
1 parent faa8ba0 commit 3fcad43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ viper.AddConfigPath("$HOME/.appname") // call multiple times to add many search
119119
viper.AddConfigPath(".") // optionally look for config in the working directory
120120
err := viper.ReadInConfig() // Find and read the config file
121121
if err != nil { // Handle errors reading the config file
122-
panic(fmt.Errorf("Fatal error config file: %s \n", err))
122+
panic(fmt.Errorf("Fatal error config file: %w \n", err))
123123
}
124124
```
125125

0 commit comments

Comments
 (0)