Maybe you could give more information in the error message: what you expect as a valid input and what was given. It helps a lot when using a library if the error message is as helpful as possible.