mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Fix error handling (#5823)
This commit is contained in:
parent
5a89d93f73
commit
9c14495701
1 changed files with 1 additions and 1 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Reference in a new issue