Fix call to println

Signed-off-by: kolaente <k@knt.li>
This commit is contained in:
kolaente 2020-04-02 21:38:16 +02:00
parent 6d1018e647
commit e7706a20dd
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -254,7 +254,7 @@ func InitConfig() {
homeDir, err := os.UserHomeDir() homeDir, err := os.UserHomeDir()
if err != nil { if err != nil {
log.Println("No home directory found, not using config from ~/.config/vikunja/. Error was: %s", err.Error()) log.Printf("No home directory found, not using config from ~/.config/vikunja/. Error was: %s\n", err.Error())
} else { } else {
viper.AddConfigPath(path.Join(homeDir, ".config", "vikunja")) viper.AddConfigPath(path.Join(homeDir, ".config", "vikunja"))
} }
@ -264,11 +264,11 @@ func InitConfig() {
err = viper.ReadInConfig() err = viper.ReadInConfig()
if err != nil { if err != nil {
log.Println(err.Error()) log.Println(err.Error())
log.Println("Using defaults.") log.Println("Using default config.")
return return
} }
log.Println("Using config file:", viper.ConfigFileUsed()) log.Printf("Using config file: %s", viper.ConfigFileUsed())
} }
func random(length int) (string, error) { func random(length int) (string, error) {