From de175de17f58f9af44d07bfed4cd9c92c95aa5a9 Mon Sep 17 00:00:00 2001 From: Michele Costa Date: Tue, 3 Oct 2023 10:13:57 +0100 Subject: [PATCH] Improve error message when resolving user's homedir --- pkg/cmd/collect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/collect.go b/pkg/cmd/collect.go index 6f99d009..9949f238 100644 --- a/pkg/cmd/collect.go +++ b/pkg/cmd/collect.go @@ -65,7 +65,7 @@ var collectCmd = &cobra.Command{ if strings.Contains(tempDir, "~") { usr, err := user.Current() if err != nil { - log.Fatal("Failed to result homedir for current user in --tempdir") + log.Fatal("Failed to fetch current user so could not resolve tempdir") } if tempDir == "~" { tempDir = usr.HomeDir