You are here: Foswiki>Tasks Web>Item10569 (14 Oct 2012, GeorgeClark)Edit Attach

Item10569: Improve error handling for missing Include Handlers

Priority: Enhancement
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: FoswikiTemplates, INCLUDE
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
Fix for Item10564 avoids the crash, but the handling could be improved.

  • Obtain the list of IncludeHandlers and verify that the handler exists before attempting to eval it.
  • Return a more meaningful error message to the user:

%<nop>TMPL:DEF{"bad_include_handler"}%   %MAKETEXT{"Warning: Can't find handler for '[_1]', available handlers are: '[_2]'." args="<nop>%PARAM1% %PARAM2"}% %<nop>TMPL:END%
-- GeorgeClark - 29 Mar 2011

Changing this task to remove it from the 1.1.4 planning. I don't see that there is a big benefit to trying to enhance this, and it would add overhead to every INCLUDE.

-- GeorgeClark - 23 Jul 2011

Changing to "No Action". ..

-- GeorgeClark - 14 Oct 2012

ItemTemplate edit

Summary Improve error handling for missing Include Handlers
ReportedBy GeorgeClark
Codebase 1.1.3, 1.1.3 RC1, 1.1.3 beta1, trunk
SVN Range
AppliesTo Engine
Component FoswikiTemplates, INCLUDE
Priority Enhancement
CurrentState No Action Required
TargetRelease n/a
ReleasedIn n/a
Topic revision: r4 - 14 Oct 2012, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy