Verified Commit 50c0d64e authored by shelikhoo's avatar shelikhoo
Browse files

Add Detailed Error Output for proxyPolls, proxyAnswers

parent c7549d88
......@@ -94,7 +94,7 @@ For snowflake proxies to request a client from the Broker.
func proxyPolls(i *IPC, w http.ResponseWriter, r *http.Request) {
body, err := ioutil.ReadAll(http.MaxBytesReader(w, r.Body, readLimit))
if err != nil {
log.Println("Invalid data.")
log.Println("Invalid data.", err.Error())
w.WriteHeader(http.StatusBadRequest)
return
}
......@@ -204,7 +204,7 @@ which the broker will pass back to the original client.
func proxyAnswers(i *IPC, w http.ResponseWriter, r *http.Request) {
body, err := ioutil.ReadAll(http.MaxBytesReader(w, r.Body, readLimit))
if err != nil {
log.Println("Invalid data.")
log.Println("Invalid data.", err.Error())
w.WriteHeader(http.StatusBadRequest)
return
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment