Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve messages of string_generator #146

Open
ivantishchenko opened this issue Feb 8, 2024 · 1 comment
Open

Improve messages of string_generator #146

ivantishchenko opened this issue Feb 8, 2024 · 1 comment

Comments

@ivantishchenko
Copy link

It would be nice to extend the exception message for
https://github.com/boostorg/uuid/blob/develop/include/boost/uuid/string_generator.hpp

For example:

  • "" => "invalid uuid string ''. uuid cannot be empty'
  • "123------123" => "invalid uuid string '123------123'. uuid cannot contain consecutive dashes'.
  • ...
pdimov added a commit that referenced this issue Apr 29, 2024
@pdimov
Copy link
Member

pdimov commented May 9, 2024

The exception messages have been improved a bit, although they still don't really match what you suggest. "" now says "Invalid UUID string at position 0: unexpected end of input", whereas "123------123" says "Invalid UUID string at position 3: hex digit expected".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants