MCPcopy Create free account
hub / github.com/Permify/permify / validationError

Function validationError

pkg/dsl/ast/validation.go:50–53  ·  view source on GitHub ↗

validationError - returns a formatted error message.

(info token.PositionInfo, message string)

Source from the content-addressed store, hash-verified

48
49// validationError - returns a formatted error message.
50func validationError(info token.PositionInfo, message string) error {
51 msg := fmt.Sprintf("%v:%v: %s", info.LinePosition, info.ColumnPosition, strings.ToLower(strings.ReplaceAll(strings.ReplaceAll(message, "ERROR_CODE_", ""), "_", " ")))
52 return errors.New(msg)
53}

Callers 2

ValidateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected