refactor: static sentinel errors for #55's config validation paths (err113)

This commit is contained in:
2026-08-09 13:35:52 +00:00
parent 888c3a409a
commit 9218d7e7f6
3 changed files with 24 additions and 12 deletions

View File

@@ -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)