Author: suokko
Date: Tue Jun 10 12:22:32 2008
New Revision: 27083

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27083&view=rev
Log:
Improved error message for missing wml tag handler

Modified:
    trunk/src/game_events.cpp

Modified: trunk/src/game_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_events.cpp?rev=27083&r1=27082&r2=27083&view=diff
==============================================================================
--- trunk/src/game_events.cpp (original)
+++ trunk/src/game_events.cpp Tue Jun 10 12:22:32 2008
@@ -3022,7 +3022,10 @@
 
                if (func == function_call_map.end())
                {
-                       ERR_NG << "Didn't found handler function for wml tag: 
"<< cmd <<"\n";  
+                       // don't give error message for filters because they 
are handled allready
+                       if (cmd == "filter" || cmd == "filter_second")
+                               return;
+                       ERR_NG << "Couldn't find function for wml tag: "<< cmd 
<<"\n";  
                        return;
                }
                


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to