Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Proposal: add option to change delimiter #207

Open
tamiraviv opened this issue Jul 4, 2019 · 0 comments
Open

Proposal: add option to change delimiter #207

tamiraviv opened this issue Jul 4, 2019 · 0 comments

Comments

@tamiraviv
Copy link

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant