@@ -0,0 +1,11 @@
|
||||
package rings
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
|
||||
"darvaza.org/core"
|
||||
)
|
||||
|
||||
func ErrOutOfRange[T ~int](value T, field string) error {
|
||||
return core.Wrap(syscall.EINVAL, "%v: %s out of range", value, field)
|
||||
}
|
||||
Reference in New Issue
Block a user