fix(config): pass err to log
This commit is contained in:
parent
b243e2f7f1
commit
a978bb36f7
1 changed files with 2 additions and 1 deletions
|
|
@ -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 = "."
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue