Files
AdGuardHome/internal/dhcpsvc/errors.go
2025-06-18 18:03:13 +03:00

14 lines
317 B
Go

package dhcpsvc
import (
"fmt"
)
// newMustErr returns an error that indicates that valName must be as must
// describes.
//
// TODO(e.burkov): Use [validate] and remove this function.
func newMustErr(valName, must string, val fmt.Stringer) (err error) {
return fmt.Errorf("%s %s must %s", valName, val, must)
}