filter_arg_count

Diagnostic `nanook::template::filter_arg_count`

Summary

filter `{name}` expected {expected} arg(s), got {got}

Details

When this fires

A built-in filter got the wrong number of arguments. Raised at render time by Filters::no_args or Filters::one_arg in crates/nanook-template/src/filter.rs. You'll see it logged when an alert tries to send, and the action will retry/drop per its policy.

What to check

Match args to the filter's contract:

  • no args: upper, lower, trim, len, floor, ceil, urlencode
  • one arg: default, truncate, round
broken: {{ name | upper("x") }}
broken: {{ s | truncate }}
fixed:  {{ name | upper }}
fixed:  {{ s | truncate(80) }}