[interchange-cvs] CVS notice: activity by jason

interchange-cvs@lists.akopia.com interchange-cvs@lists.akopia.com
Tue Jun 5 15:51:00 2001


CVS activity by user 'jason':
interchange/lib/Vend Interpolate.pm,1.40.2.64,1.40.2.65
Update of /anon_cvs/repository/interchange/lib/Vend
In directory developer.akopia.com:/tmp/cvs-serv24102

Modified Files:
      Tag: DEV_4_7_0
	Interpolate.pm 
Log Message:
This patch adds 4 options to the [perl] tag that make it a bit easier to
work with when debugging:

number_errors
    Add line numbers to the source code displayed in the error.log, amazingly
    useful if some of the perl is being generated elsewhere and interpolated.

eval_label
    Set to a string, will replace the (eval ###) in the error message with
    this label, handy to quickly track down bugs when you have more than
    one perl block in the page, especially if you are using short_errors.

short_errors
    If set to a true value, syntax errors and the like in [perl] tags will
    log just the error, not the whole source code of the block in question,
    handy when you have the code open in an editor anyway and don't want
    the error itself to get scrolled away when running 'tail -f error.log'.

trim_errors
    Seemed to be the logical extension of short_errors, if set to a number,
    and the error produced includes a line number, then only that number
    of lines before and after the broken line itself will be displayed,
    instead of the whole block.