Fix last linting errors

This commit is contained in:
Marcel Otte 2021-10-27 23:18:54 +02:00
parent a64be87c6f
commit 4807162a0a
1 changed files with 2 additions and 2 deletions

View File

@ -48,9 +48,9 @@ func Load() *Configuration {
vconfig := CreateViper()
if err := vconfig.ReadInConfig(); err != nil {
if _, ok := err.(viper.ConfigFileNotFoundError); ok {
panic(fmt.Errorf("Fatal: No config file could be found!"))
panic(fmt.Errorf("Fatal: No config file could be found"))
}
panic(fmt.Errorf("Fatal error config file: %w \n", err))
panic(fmt.Errorf("Fatal error config file: %w ", err))
}
var cfg *Configuration