Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mount: fix Go 1.20 errorlint warning
Since Go 1.20, > [t]he fmt.Errorf function now supports multiple occurrences of the %w > format verb, which will cause it to return an error that wraps all of > those error operands. This change, together with newer errorlint, causes the following warning: > mount_unix.go:74:56: non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint) > return fmt.Errorf("%w (possible cause: %s)", err, suberr) > ^ Since Go < 1.20 is no longer supported, let's wrap both errors, and set go version to 1.20 in go.mod Fixes: 487129d Signed-off-by: Kir Kolyshkin <[email protected]>
- Loading branch information