3 // EvalReturnError is an EvalNode implementation that returns an
4 // error if it is present.
6 // This is useful for scenarios where an error has been captured by
7 // another EvalNode (like EvalApply) for special EvalTree-based error
8 // handling, and that handling has completed, so the error should be
10 type EvalReturnError struct {
14 func (n *EvalReturnError) Eval(ctx EvalContext) (interface{}, error) {