Преглед на файлове

fix(config): pass err to log

ayn2op преди 9 месеца
родител
ревизия
a978bb36f7
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      internal/config/config.go

+ 2 - 1
internal/config/config.go

@@ -64,7 +64,8 @@ func DefaultPath() string {
 	path, err := os.UserConfigDir()
 	if err != nil {
 		slog.Info(
-			"user config directory path cannot be determined; falling back to the current directory path",
+			"user config dir cannot be determined; falling back to the current dir",
+			"err", err,
 		)
 		path = "."
 	}