From d0f48efa914204fa403993f442b388edd9dccd74 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Wed, 7 May 2025 18:03:00 -0400 Subject: [PATCH] Make an error message less verbose --- monitor/monitor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/monitor.go b/monitor/monitor.go index 8d9f7ad..705026e 100644 --- a/monitor/monitor.go +++ b/monitor/monitor.go @@ -97,7 +97,7 @@ func getEntriesFull(ctx context.Context, client ctclient.Log, startInclusive, en func getAndVerifySTH(ctx context.Context, ctlog *loglist.Log, client ctclient.Log) (*cttypes.SignedTreeHead, string, error) { sth, url, err := client.GetSTH(ctx) if err != nil { - return nil, "", fmt.Errorf("error getting STH: %w", err) + return nil, "", err } if err := ctcrypto.PublicKey(ctlog.Key).Verify(ctcrypto.SignatureInputForSTH(sth), sth.Signature); err != nil { return nil, "", fmt.Errorf("STH has invalid signature: %w", err)