Skip to content

Commit 34b1655

Browse files
committed
fix linter
1 parent bc8c242 commit 34b1655

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/agent.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ func (ac *AgentClient) Get(ctx context.Context, ports []uint32) *AgentResponse {
7272
defer response.Body.Close()
7373
hostname := response.Header.Get("X-Kimo-Hostname")
7474
if response.StatusCode != 200 {
75-
return &AgentResponse{ip: ac.Address.IP, err: fmt.Errorf(response.Status), hostname: hostname}
75+
return &AgentResponse{
76+
ip: ac.Address.IP,
77+
err: fmt.Errorf("HTTP request failed: %s", response.Status),
78+
hostname: hostname}
7679
}
7780

7881
var r struct {

0 commit comments

Comments
 (0)