From c4675e27de11a3ae3994b11b5af753806fe7f2d9 Mon Sep 17 00:00:00 2001 From: phbnf Date: Thu, 22 Aug 2024 10:47:39 +0100 Subject: [PATCH] return Add error messages (#165) --- personalities/sctfe/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/personalities/sctfe/handlers.go b/personalities/sctfe/handlers.go index eea7a656..e81ce78c 100644 --- a/personalities/sctfe/handlers.go +++ b/personalities/sctfe/handlers.go @@ -324,7 +324,7 @@ func addChainInternal(ctx context.Context, li *logInfo, w http.ResponseWriter, r klog.V(2).Infof("%s: %s => storage.Add", li.LogOrigin, method) idx, err := li.storage.Add(ctx, entry) if err != nil { - return http.StatusInternalServerError, fmt.Errorf("couldn't store the leaf") + return http.StatusInternalServerError, fmt.Errorf("couldn't store the leaf: %v", err) } // Always use the returned leaf as the basis for an SCT.