Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
muraty committed Dec 2, 2024
1 parent bc8c242 commit 34b1655
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ func (ac *AgentClient) Get(ctx context.Context, ports []uint32) *AgentResponse {
defer response.Body.Close()
hostname := response.Header.Get("X-Kimo-Hostname")
if response.StatusCode != 200 {
return &AgentResponse{ip: ac.Address.IP, err: fmt.Errorf(response.Status), hostname: hostname}
return &AgentResponse{
ip: ac.Address.IP,
err: fmt.Errorf("HTTP request failed: %s", response.Status),
hostname: hostname}
}

var r struct {
Expand Down

0 comments on commit 34b1655

Please sign in to comment.