From 64ebaf0b7b4ef913bfe65fb35d4da3c2043513f5 Mon Sep 17 00:00:00 2001 From: James Hamlin Date: Sun, 26 Nov 2023 14:17:58 -0800 Subject: [PATCH] More error info on invalid cache result Signed-off-by: James Hamlin --- pkg/reader/clj_conformance_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/reader/clj_conformance_test.go b/pkg/reader/clj_conformance_test.go index c7ef08c..6a33484 100644 --- a/pkg/reader/clj_conformance_test.go +++ b/pkg/reader/clj_conformance_test.go @@ -290,7 +290,7 @@ func getFromCache(program string) (bool, string, error) { } lines := strings.SplitN(string(data), "\n", 2) if len(lines) != 2 { - return false, "", fmt.Errorf("invalid cache file: %s", path) + return false, "", fmt.Errorf("invalid cache file: %s; %d lines, expected 2", path, len(lines)) } switch lines[0] { case "true":