소스 검색

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 = "."
 	}