Skip to content

Commit

Permalink
More error info on invalid cache result
Browse files Browse the repository at this point in the history
Signed-off-by: James Hamlin <[email protected]>
  • Loading branch information
jfhamlin committed Nov 26, 2023
1 parent 6c331e1 commit 64ebaf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/reader/clj_conformance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 64ebaf0

Please sign in to comment.