Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 230b6b6

Browse files
committed
changing error message to not include newline
1 parent 20b04bf commit 230b6b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/root_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ type testpair struct {
3333
func TestCacheDir(t *testing.T) {
3434
homeDir, err := homedir.Dir()
3535
if err != nil {
36-
t.Errorf("\nError getting home dir")
36+
t.Errorf("error getting home dir: %s", err.Error())
3737
}
38-
3938
tests := []struct {
4039
name string
4140
cliFlag string

0 commit comments

Comments
 (0)