Tags:
create new tag
, view all tags
If you make a syntax error in a plugin, it is sometimes silently ignored, with no output in logs, either server or TWiki.

To make these errors appear in TWiki debug.txt file, one need just to append one line to lib/TWiki/Plugins.pm, after eval "use $p;"; around line 140:

     eval "use $p;";
      &TWiki::Func::writeDebug( "ERROR in Plugin $plugin: $@" ) if ( $@ ); 

I suggest this makes it in the official distrib. It should incur no overhead. Attached is the patch to Dec 2001 version.

-- ColasNahaboo - 03 Sep 2002

What it perhaps be better to use writeWarning? I think we only use the Func routines from within Plugins.

-- JohnTalintyre - 04 Sep 2002

Fine with me.
-- ColasNahaboo - 04 Sep 2002

Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatpatch pluginerrordebug.patch manage 0.4 K 2002-09-03 - 23:18 ColasNahaboo  
Topic revision: r3 - 2002-09-04 - ColasNahaboo
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.