Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
time: quote original text in error returned by ParseDuration #38295
I am trying to parse some time strings using the standard library. I am trying to parse the time "for breakfast" (literally).
What did you expect to see?
I would expect to see an error message explaining clearly what I did wrong.
What did you see instead?
That's not very helpful.
would be highly more useful for debugging.
Please think of using quotation marks for quoted text when writing natural language like English.
This part of the code in particular, contains quite a few occurrences of quoted text without quotation marks.
I am happy to submit a PR if you agree this is a good change.
added wrapper for external errors, come outside the module to detect them in tests despite its content (golang/go#38295)