Skip to content

Commit

Permalink
chore: improve field not found message (#439)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
  • Loading branch information
eddycharly authored Jul 30, 2024
1 parent 99eace6 commit 42f7e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/engine/assert/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (n mapNode) assert(ctx context.Context, path *field.Path, value any, bindin
if err != nil {
return nil, field.InternalError(path.Child(fmt.Sprint(k)), err)
} else if projection == nil {
errs = append(errs, field.Required(path.Child(fmt.Sprint(k)), "projection is not valid"))
errs = append(errs, field.Required(path.Child(fmt.Sprint(k)), "field not found in the input object"))
} else {
if projection.binding != "" {
bindings = bindings.Register("$"+projection.binding, jpbinding.NewBinding(projection.result))
Expand Down

0 comments on commit 42f7e4f

Please sign in to comment.