You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[question] Is there a way to get msg from errors.Wrap(code, msg)? #164
On 2 Aug 2018, at 02:38, Allen Sun ***@***.***> wrote:
Hi, I have a question for the project.
Now there is a line of code :
func A() error{
return errors.Wrap(code, msg)
}
Then I have a caller err := A(), so can I use the returned err to get msg?
Thanks in advance.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Activity
davecheney commentedon Aug 1, 2018
gumingqi commentedon Jul 29, 2019
I want to set error code,and use it in the caller too