mail[Wesnoth-commits] r28664 - /trunk/src/formula_ai.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by dragonking on August 17, 2008 - 13:04:
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) + ")");
                        }
                }
        }




Related Messages


Powered by MHonArc, Updated Sun Aug 17 13:22:12 2008