diff --git a/examples/hotrod/services/frontend/best_eta.go b/examples/hotrod/services/frontend/best_eta.go index 8a541c6d49f..a48a3dd9767 100644 --- a/examples/hotrod/services/frontend/best_eta.go +++ b/examples/hotrod/services/frontend/best_eta.go @@ -89,7 +89,7 @@ func (eta *bestETA) Get(ctx context.Context, customerID int) (*Response, error) resp := &Response{ETA: math.MaxInt64} for _, result := range results { if result.err != nil { - return nil, err + return nil, result.err } if result.route.ETA < resp.ETA { resp.ETA = result.route.ETA