Thanks **TinBryn** , **gemath** and **Hlaaftana**. All your solutions work in my tiny example. I'll adapt the last one to work in the macro that generate the templates.
The missing ingredient from the other thread is the when test that guarantee
that the {.error: msg... .} pragma is printed at compilation time only.
