Author: dragonking
Date: Sun Aug 17 13:03:57 2008
New Revision: 28664

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28664&view=rev
Log:
Improved formula error msgs for unit formulas

Modified:
    trunk/src/formula_ai.cpp

Modified: trunk/src/formula_ai.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/formula_ai.cpp?rev=28664&r1=28663&r2=28664&view=diff
==============================================================================
--- trunk/src/formula_ai.cpp (original)
+++ trunk/src/formula_ai.cpp Sun Aug 17 13:03:57 2008
@@ -1322,7 +1322,7 @@
                        catch(formula_error& e) {
                                if(e.filename_ == "formula")
                                        e.line_ = 0;
-                               handle_exception( e, "Error while parsing unit 
formula" );
+                               handle_exception( e, "Unit formula error for 
unit: '" + i->second.type_id() + "' standing at (" + 
boost::lexical_cast<std::string>(i->first.x+1) + "," + 
boost::lexical_cast<std::string>(i->first.y+1) + ")");
                        }
                }
        }


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

Reply via email to