Fix error handling (#5823)

This commit is contained in:
gillespi314 2022-05-19 18:29:33 -05:00 committed by GitHub
parent 5a89d93f73
commit 9c14495701
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ func getDeviceHostEndpoint(ctx context.Context, request interface{}, svc fleet.S
license, err := svc.License(ctx)
if err != nil {
return nil, err
return getDeviceHostResponse{Err: err}, nil
}
return getDeviceHostResponse{