Hi Agniva, the problem is: In the main function is no information that there was an Layer2 error (layer2 error is not included in the error anymore). I don't know how to take the error from layer2 and wrap another error (layer1-error) around it.
You can only use the verb "%w" once in a fmt.Errorf() function afaik. So if you have a wrapped error object e1, how would you enrich / wrap this with another error e2? Thanks, Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e33b7257-5e68-48b2-b4ca-fc968a6c0ddf%40googlegroups.com.