fmt, errors: empty messages in the error chain result in ugly messages #30683
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What did you do?
https://play.golang.org/p/ewauxpVAIji
What did you expect to see?
I would expect to see:
What did you see instead?
Instead we see:
It's not uncommon to want to wrap errors just to record the location without adding any message (adding an annotation at every level can end up with unwieldy messages), so I think a colon separator should only be printed if there's something to print.
The text was updated successfully, but these errors were encountered: