mirror of
https://git.vectorsigma.ru/public/AdGuardHome.git
synced 2026-08-03 22:49:33 +00:00
14 lines
317 B
Go
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)
|
|
}
|