Skip to content

Make sure we properly wrap all errors

Andrej Shadura requested to merge wrap-errors into main

Using %w instead of %v makes Errorf store the original error, allowing the caller to extract and use it later. While there isn’t any immediate benefit from it, it may be useful in future.

See:

Merge request reports