print appropriate error

This commit is contained in:
Tomas Barton 2019-05-03 14:19:54 +02:00
parent 60f47c4228
commit 55cebd58a8
No known key found for this signature in database
GPG key ID: B5F3CC8C2893A125

View file

@ -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
}