Error Targets in Cart Validation

What does the target field in the errors returned by Cart Validation functions actually do? I’ve tried a handful of different variants and it doesn’t seem to affect anything. For example:

errors.push(output::FunctionError {
    localized_message: "My error message".to_owned(),
    target: "$.cart.lines[0]".to_owned(),
});

You can find documentation on the supported target values here:

1 Like