From: <dr...@us...> - 2002-11-01 22:27:43
|
Update of /cvsroot/webmacro/webmacro/src/org/webmacro/directive In directory usw-pr-cvs1:/tmp/cvs-serv8979 Modified Files: IfDirective.java Log Message: when #if outputs errors (like Objects not comparable), make sure to include the context.currentLocation(); Index: IfDirective.java =================================================================== RCS file: /cvsroot/webmacro/webmacro/src/org/webmacro/directive/IfDirective.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** IfDirective.java 11 Jun 2002 17:43:20 -0000 1.12 --- IfDirective.java 1 Nov 2002 22:15:31 -0000 1.13 *************** *** 192,196 **** } catch (Exception e) { ! String warning = "#if: Error evaluating condition: " + e; context.getLog("engine").warning(warning); writeWarning(warning, context, out); --- 192,196 ---- } catch (Exception e) { ! String warning = "#if: Error evaluating condition: " + e + " at " + context.getCurrentLocation(); context.getLog("engine").warning(warning); writeWarning(warning, context, out); |