support icon indicating copy to clipboard operation
support copied to clipboard

[Bug] Missing verbose error for PBIO_ERROR_INVALID_ARG

Open laurensvalk opened this issue 9 months ago • 0 comments

A few errors in https://github.com/pybricks/pybricks-micropython/blob/master/pybricks/util_pb/pb_error.c have verbose descriptions, but not all of them do.

Even though we might not have specific strings for each method, we can still make the more generic strings more helpful without adding code size to Move Hub since it doesn't include them.

We should include better descriptions for PBIO_ERROR_INVALID_ARG and perhaps PBIO_ERROR_TIMEDOUT.

The one for PBIO_ERROR_INVALID_ARG should say that the given value is not valid because it may be too big or too small. And add a note that refers to the documentation.


even if 950 or even 612 is too much the error shouldn't be "invalid argument". it should be "valid range exceeded" or something like that

Originally posted by @bcfletcher in #2145

laurensvalk avatar Apr 03 '25 07:04 laurensvalk