more useful error messages

This commit is contained in:
Glenn Maynard
2006-09-29 07:24:40 +00:00
parent 63cb157197
commit 85eb3e0a05
3 changed files with 9 additions and 8 deletions
+3 -2
View File
@@ -949,14 +949,15 @@ void ThemeManager::PushMetric( Lua *L, const RString &sClassName, const RString
{
RString sValue = GetMetricRaw( g_pLoadedThemeData->iniMetrics, sClassName, sValueName );
RString sName = ssprintf( "%s::%s", sClassName.c_str(), sValueName.c_str() );
if( EndsWith(sValueName, "Command") )
{
ActorUtil::ParseActorCommands( L, sValue );
ActorUtil::ParseActorCommands( L, sValue, sName );
}
else
{
LuaHelpers::PrepareExpression( sValue );
LuaHelpers::RunExpression( L, sValue, ssprintf("%s::%s", sClassName.c_str(), sValueName.c_str()) );
LuaHelpers::RunExpression( L, sValue, sName );
}
}