errors icon indicating copy to clipboard operation
errors copied to clipboard

Proposal: add option to change delimiter

Open tamiraviv opened this issue 6 years ago • 0 comments

When using errors.Wrap the default delimiter is ": ". But for me at least it seem like it should be "| ", with that I can wrap errors like this:

errors.Wrapf(err, "Error while trying to open file: %s", fileName)

I thing that instead of hard-coded delimiter we should be able to configure it with:

errors.SetDelimiter (string)

tamiraviv avatar Jul 04 '19 22:07 tamiraviv