Index: openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-procs.tcl,v
diff -u -r1.28 -r1.29
--- openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 18 Apr 2006 00:06:14 -0000 1.28
+++ openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 18 Apr 2006 21:26:10 -0000 1.29
@@ -710,12 +710,16 @@
if {![string match "/*" $adp_fn]} {set adp_fn /packages/xowiki/www/$adp_fn}
set adp_args [lindex $adp 1]
if {[llength $adp_args] % 2 == 1} {
- return "Error in '$arg'
\n\
+ return "Error in '{{$arg}}'
\n\
Syntax: adp <name of adp-file> {<argument list>}
\n
Invalid argument list: '$adp_args'; must be attribute value pairs (even number of elements)"
}
lappend adp_args __including_page [self]
- return [template::adp_include $adp_fn $adp_args]
+ if {[catch {set page [template::adp_include $adp_fn $adp_args]} errorMsg]} {
+ return "Error during evaluation of '{{$arg}}'
\n\
+ adp_include returned error message: $errorMsg
\n"
+ }
+ return $page
}
}
Page instproc div arg {