Is it possible to get the message passed to errors.Wrap(err, message)? What I specifically mean is message itself, without anything from err.
My use case is that I wrap underlying errors, and pass in a human friendly message, that I would like to expose to customers via our APIs. Currently I'm parsing the message out by splitting by : , which is brittle.
Is it possible to get the message passed to
errors.Wrap(err, message)? What I specifically mean ismessageitself, without anything fromerr.My use case is that I wrap underlying errors, and pass in a human friendly message, that I would like to expose to customers via our APIs. Currently I'm parsing the message out by splitting by
:, which is brittle.