more detailed error

This commit is contained in:
odyseusz 2024-09-28 19:51:27 +02:00
parent 92b6cf890b
commit 435a9b2ecf

View File

@ -93,7 +93,7 @@ func userdata(username, usersonline, ops string) Userinfo {
}
viper.SetConfigFile(filename)
if err := viper.ReadInConfig(); err != nil {
log.Error("Couldn't read a users meta-info.toml file.", err, username)
log.Error("message", "Couldn't read a users meta-info.toml file.", "error", err, "user", username)
user := Userinfo{
Name: username,
}