Right now, whenever a user specifies an invalid option, the driver emits the following error:
ArgumentError { message: "invalid option warning" } }
The message has a few issues:
- It doesn't specify which option is invalid
- It says "warning" even though it's an error and will prevent URI parsing.
We should update the message to address the previous two points. As an added bonus, we could consider using a string similarity lookup on the list of valid options to suggest alternatives if a user made a typo, similar to how the Rust compiler tries to give suggestions for typos.