Add no space error handling for non-Windows systems

This commit is contained in:
Michael Mendy 2026-05-25 08:25:12 -07:00 committed by GitHub
parent f000da3b35
commit 101e2bf2ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,14 @@
//go:build !windows
package retry
import (
"errors"
"syscall"
)
var errNoSpace = syscall.ENOSPC
func isNoSpaceError(err error) bool {
return errors.Is(err, errNoSpace)
}