From 435a9b2ecf01966f6c6daae8c4bf3f895ed7b500 Mon Sep 17 00:00:00 2001 From: odyseusz <4pt5r3kf2@mozmail.com> Date: Sat, 28 Sep 2024 19:51:27 +0200 Subject: [PATCH] more detailed error --- pages/users.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/users.go b/pages/users.go index a15fdf6..1e3f2a3 100644 --- a/pages/users.go +++ b/pages/users.go @@ -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, }