From b4f18162b4075e4e3d084cd1880977722b07d78d Mon Sep 17 00:00:00 2001 From: David Dworken Date: Sun, 24 Mar 2024 14:34:54 -0700 Subject: [PATCH] Add better error message for SLSA failures --- client/lib/slsa.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lib/slsa.go b/client/lib/slsa.go index 187b898..2d0bdb6 100644 --- a/client/lib/slsa.go +++ b/client/lib/slsa.go @@ -120,7 +120,7 @@ func HandleSlsaFailure(srcErr error) error { if errors.Is(srcErr, errUserAbortUpdate) { return srcErr } - fmt.Printf("\nFailed to verify SLSA provenance! This is likely due to a SLSA bug (SLSA is a brand new standard, and like all new things, has bugs). Ignoring this failure means falling back to the way most software does updates. Do you want to ignore this failure and update anyways? [y/N]") + fmt.Printf("\nFailed to verify SLSA provenance due to err: %v\nThis is likely due to a SLSA bug (SLSA is a brand new standard, and like all new things, has bugs). Ignoring this failure means falling back to the way most software does updates. Do you want to ignore this failure and update anyways? [y/N]", srcErr) reader := bufio.NewReader(os.Stdin) resp, err := reader.ReadString('\n') if err == nil && strings.TrimSpace(resp) == "y" {