mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 18:51:19 +00:00
9 lines
235 B
Go
9 lines
235 B
Go
|
package validator
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
// ErrNoFlag takes a flag name and returns a formatted error representing no flag was provided.
|
||
|
func errNoFlag(flagName string) error {
|
||
|
return fmt.Errorf("no --%s flag value was provided", flagName)
|
||
|
}
|