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 History Action Size Date Who Comment
Unknown file formatpatch pluginerrordebug.patch r1 manage 0.4 K 2002-09-03 - 23:18 UnknownUser  
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2002-09-04 - ColasNahaboo
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.