Skip to content

Commit

Permalink
Handle one more error
Browse files Browse the repository at this point in the history
  • Loading branch information
elffjs committed Jan 5, 2025
1 parent 6fc8a78 commit bcef964
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/devices-api/check_virtual_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ func checkVehicle(uri, vin, token string) (bool, error) {
}

respBytes, err := io.ReadAll(res.Body)
if err != nil {
return false, fmt.Errorf("failed to read response body: %w", err)
}

var resBody fleetStatusResp

Expand Down

0 comments on commit bcef964

Please sign in to comment.