From 2c8a1f2adab559531afda331f4056ed4726c49ac Mon Sep 17 00:00:00 2001 From: Albin Gilles Date: Fri, 29 Dec 2023 12:15:07 -0500 Subject: [PATCH] Make error 190 hint towards Too Many Requests reached --- device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device.go b/device.go index 7d721b1..3b5bce0 100644 --- a/device.go +++ b/device.go @@ -115,7 +115,7 @@ func (svc *DeviceService) List(ctx context.Context) ([]Device, []InfraredDevice, } if response.StatusCode == 190 { - return nil, nil, errors.New("device internal error due to device states not synchronized with server") + return nil, nil, errors.New("device internal error due to device states not synchronized with server or too many requests limit reached") } else if response.StatusCode != 100 { return nil, nil, fmt.Errorf("unknown error %d from device list API", response.StatusCode) }