From 55cebd58a8d20fe4b32a625b3b8e709b5b1420b5 Mon Sep 17 00:00:00 2001 From: Tomas Barton Date: Fri, 3 May 2019 14:19:54 +0200 Subject: [PATCH] print appropriate error --- server/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/handlers.go b/server/handlers.go index d961dbef..ae6a21db 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -225,7 +225,7 @@ func (s *Server) handleAuthorization(w http.ResponseWriter, r *http.Request) { connectors, e := s.storage.ListConnectors() if e != nil { - s.logger.Errorf("Failed to get list of connectors: %v", err) + s.logger.Errorf("Failed to get list of connectors: %v", e) s.renderError(w, http.StatusInternalServerError, "Failed to retrieve connector list.") return }