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