#164·errors

[question] Is there a way to get msg from errors.Wrap(code, msg)?

Author: allencloudCreated Aug 1, 2018Updated Jul 29, 2019

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.