(no title)
mlunar
|
1 year ago
In Go you can do errorf("%w: %s", err, path) so that you get "file not found: foo/bar.json", while still being able to match on the wrapped error value with errors.Is(). The caller can do the same with this error and so on up the stack
fpoling|1 year ago
lukax|1 year ago