From 9728803877a37aeafc5a5c5b4fe8e81f9635965b Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Thu, 28 Jun 2018 16:54:24 -0700 Subject: [PATCH] frontend/handlers: wrap err Signed-off-by: Ahmet Alp Balkan --- src/frontend/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/handlers.go b/src/frontend/handlers.go index cceb8e0..514f2aa 100644 --- a/src/frontend/handlers.go +++ b/src/frontend/handlers.go @@ -73,7 +73,7 @@ func (fe *frontendServer) homeHandler(w http.ResponseWriter, r *http.Request) { for i, p := range products { price, err := fe.convertCurrency(r.Context(), p.GetPriceUsd(), currentCurrency(r)) if err != nil { - renderHTTPError(w, err, http.StatusInternalServerError) + renderHTTPError(w, fmt.Errorf("failed to do currency conversion for product %s: %+v", p.GetId(), err), http.StatusInternalServerError) return } ps[i] = productView{p, price}