Vincent Massol wrote:
Hi devs,
I introduced these events initially in order to be able to have inline
error reporting in a generic manner. However there are some problems:
* it currently works only for macros, if you wrap other blocks with an
error block you'll get to see the output of what is wrapped.
* there's no block other than the MacroBlock that can raise an error
so there's no need to have a generic way of reporting an inline error
Thus I propose the following (suggested by Marius):
1) We remove the begin/endError events
2) When macros fail to execute we output the exact same content as is
currently output by the begin/endError events but generated as the
macro content. Since we have macro marker block around it, it'll work
just fine.
+0
--
Sergiu Dumitriu
http://purl.org/net/sergiu/