diff --git a/cobra/cmd/project_test.go b/cobra/cmd/project_test.go
index 3af44bc4..2774094c 100644
--- a/cobra/cmd/project_test.go
+++ b/cobra/cmd/project_test.go
@@ -11,7 +11,7 @@ func TestFindExistingPackage(t *testing.T) {
 		t.Fatal("findPackage didn't find the existing package")
 	}
 	if !hasGoPathPrefix(path) {
-		t.Fatal("%q is not in GOPATH, but must be", path)
+		t.Fatalf("%q is not in GOPATH, but must be", path)
 	}
 }