Item9385: INCLUDE should warn if pattern does not match
Priority: Enhancement
Current State: Proposal Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: INCLUDE
Branches:
%INCLUDE{"Thatweb.SomeTopic" pattern="foo(.*)bar"}% returns an empty string if the pattern does not match. (This is as far as I got with
Item8903.)
Sometimes that is useful, but I think the default behaviour should be a warning. This could be controlled with the warn option. That would makes sense for
warn="on"
and
warn="off"
, but I don't think using the warn option would make sense for a custom warning e.g.
warn="I cannot do it Captain - $topic does not exist!"
This should not go into 1.1 because
- The spec is not clear, and
- I think a good implementation would involve changing the interface to the IncludeHandlers.
--
MichaelTempest - 24 Jul 2010