Re:Go 1.13: xerrors
by spullara on Monday April 29, 2019 @01:21PM
(#19780413)
The biggest issue I have with most error messages is that they say things like you have here but don't reflect back the data that caused the error, i.e. show me the phone number you think I sent you.
[ Parent
| on HN ]
Re:Go 1.13: xerrors
by mattnewton on Monday April 29, 2019 @01:48PM
(#19780704)
I think this context is really hard to carry around, and if you aren’t extra super careful you can end up leaking passwords and other secret bits of memory here to logs. Better to just give me a place to put a debugger breakpoint IMO.
Re:Go 1.13: xerrors
by whatupdave on Monday April 29, 2019 @02:56PM
(#19781462)
Have to be careful here, this would send phone numbers into logs files and other potential downstream services which is a bit of a GDPR nightmare now.