Skip to content

Commit

Permalink
Make error 190 hint towards Too Many Requests reached (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbinOS authored Jan 12, 2024
1 parent 8637ff3 commit d7ea3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion device.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d7ea3bb

Please sign in to comment.