refactor: static sentinel errors for #55's config validation paths (err113)
This commit is contained in:
@@ -43,7 +43,7 @@ func defaultFreeSpaceProbe(path string) (uint64, error) {
|
||||
}
|
||||
|
||||
if stat.Bsize < 0 {
|
||||
return 0, fmt.Errorf("statfs reported negative block size %d for %q", stat.Bsize, path)
|
||||
return 0, fmt.Errorf("%w %d for %q", errNegativeBlockSize, stat.Bsize, path)
|
||||
}
|
||||
|
||||
blockSize := uint64(stat.Bsize)
|
||||
|
||||
Reference in New Issue
Block a user