Merge pull request #1443 from deric/err

Print appropriate error
This commit is contained in:
Stephan Renatus 2019-05-12 07:58:12 +02:00 committed by GitHub
commit 429bb9303f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}