1
0
Fork 0

Log full error on join failure

master
Philip O'Toole 8 years ago
parent 8975a4744d
commit de6cc9ce12

@ -3,6 +3,7 @@
package http
import (
"bytes"
"crypto/tls"
"encoding/json"
"expvar"
@ -251,7 +252,9 @@ func (s *Service) handleJoin(w http.ResponseWriter, r *http.Request) {
}
if err := s.store.Join(remoteAddr); err != nil {
b := bytes.NewBufferString(err.Error())
w.WriteHeader(http.StatusInternalServerError)
w.Write(b.Bytes())
return
}
}

Loading…
Cancel
Save