Skip to content

Commit

Permalink
Improve error message when resolving user's homedir
Browse files Browse the repository at this point in the history
  • Loading branch information
nocturnalastro committed Oct 5, 2023
1 parent 02d3535 commit de175de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de175de

Please sign in to comment.