[mapserver-commits] r7419 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Sun Mar 2 09:41:53 EST 2008


Author: sdlime
Date: 2008-03-02 09:41:53 -0500 (Sun, 02 Mar 2008)
New Revision: 7419

Modified:
   trunk/mapserver/testexpr.c
Log:
Improved error reporting a bit in testexpr.c to let the user know approximately where an expression is malformed.

Modified: trunk/mapserver/testexpr.c
===================================================================
--- trunk/mapserver/testexpr.c	2008-02-29 00:02:49 UTC (rev 7418)
+++ trunk/mapserver/testexpr.c	2008-03-02 14:41:53 UTC (rev 7419)
@@ -31,6 +31,7 @@
 
 #include "mapserver.h"
 #include "mapparser.h"
+#include "mapfile.h"
 
 MS_CVSID("$Id$")
 
@@ -62,7 +63,7 @@
 
   status = msyyparse();
   if(status != 0) 
-    printf("Error parsing expression.\n");
+    printf("Error parsing expression near %s.\n", msyytext);
   else
     printf("Expression evalulated to: %d.\n", msyyresult);
 



More information about the mapserver-commits mailing list