Skip to content

Ola streaming client reports invalid value.  #1198

@rewolff

Description

@rewolff

When I do:
ola_streaming_client -u 0 -d 2,255,2,255,0
ola_streaming client reports: Invalid value 0
And I must say that I disagree. zero is en entirely valid value.. The statement "invalid value 0" is simply wrong.

Now, it could quite possibly be the case that in some context the value "0" is not valid. But the error message should reflect that.

Of course it is easy for a programmer be writing the code for parsing "universe IDs", and that when the parsing fails, then to report "invalid value". But by the time the program suite is further along, such a failure comes from somewhere in the program, and as a user I'm left to guess WHY it considers "0" an invalid value.

Could it be that I wrote O instead of 0? No. Could it be that "0" is not a valid universe ID? No. (I checked the web interface, and I have universes with ID 0 and 2. Apparently I wrote the script when 0 and 1 were valid universe IDs... ).

P.S. The issue is not getting my ola_streaming_client commandline to work, but to improve the software.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions