expected_duration

Diagnostic `nanook::expr::expected_duration`

Summary

expected duration

Help

durations look like 5m, 1h30m, 30s

Details

When this fires

The parser was expecting a duration literal (after for, in a window, etc.) and got something else. Durations look like 5m, 30s, 1h30m, 7d.

What to check

A number followed by a unit suffix, no space between them.

# broken
for = "5"
# fixed
for = "5m"

Caught by nanook check. See @/docs/nanook-expr.md for duration syntax.