When I run the code below I get the expected failure for the "demonstrates a baseline" test, but I get an error when running the "demonstrates the error" test. I'm guessing it's something to do with how CF raises exceptions in iteration functions?
I see it. Not sure how to address it. I think the ACF team is trying to be smart and catch the exception and thrown one themselves, instead of rethrowing it. In Lucee, you get the right results.
After thinking a little more on this, I think the runtime wraper exception is stupid. Because, it is misleading.
Can't fix until Adobe fixes their issues.