Skip to content

Commit

Permalink
fix the CI failure issue
Browse files Browse the repository at this point in the history
  • Loading branch information
stou committed Jan 7, 2019
1 parent 4e3ca4e commit c613a3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xmlrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (p *XmlRPC) startHttpServer(user string, password string, protocol string,
p.listeners[protocol] = listener
http.Serve(listener, mux)
} else {
log.WithFields(log.Fields{"addr": listenAddr, "protocol": protocol}).Error("fail to listen on address")
log.WithFields(log.Fields{"addr": listenAddr, "protocol": protocol}).Fatal("fail to listen on address")
}

}
Expand Down
2 changes: 1 addition & 1 deletion xmlrpcclient/xmlrpc-client.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (r *XmlRPCClient) processResponse(resp *http.Response, processBody func(io.
if r.verbose {
fmt.Println("Bad Response:", resp.Status)
}
processBody(emptyReader, fmt.Errorf("Bad response with status %d", resp.Status))
processBody(emptyReader, fmt.Errorf("Bad response with status code %d", resp.StatusCode ))
} else {
processBody(resp.Body, nil)
}
Expand Down

0 comments on commit c613a3f

Please sign in to comment.