Closed
Description
Currently, we get errors like
Error in `Abort()`:
! The slide computations must either (a) output a single element/row
each, or (b) one element/row per appearance of the reference time value in the
local window.
There are two issues:
- The error shouldn't be "in
Abort()
"; we should use something likecall = caller_env()
in theabort
call insideAbort
(part of AugmentAbort
& co.; addrlang
condition tutorial, helpers #102 but that's a large, stale WIP), or usecli_abort
instead. - This doesn't give very helpful info about what computation(s) output the wrong number of elements/rows. We could pack the slide computations list and the expected counts in an error object & refer to them in the error message, and/or print the first one with a violation of the existing pattern.