(#3vguvha) Now, looking at @xuu@txt.sour.is’s es, I feel quite a bit stupid. In my particular case I could have just put the %w at the front of the message and not at the end and get exactly what I want: fmt.Errorf("%w '%s'", ErrInvalidSentBytes, sentBytes) results in “invalid sent bytes ‘4385743057573509732574375098741128354092547569201274123’” and can be error.Is(err, ErrInvalidSentBytes-asserted. No idea why I did not think of that. O_o Thanks mate! :-)


#co425cq