Changed many uses of Dialog::OK and LOG->Warn to use ReportScriptError.

This commit is contained in:
Kyzentun
2014-07-07 00:39:27 -06:00
parent ff1392cdba
commit 026f968fa4
31 changed files with 119 additions and 118 deletions
+2 -3
View File
@@ -246,7 +246,7 @@ namespace
{
LUA->Release( L );
sError = ssprintf( "Lua runtime error: %s", sError.c_str() );
Dialog::OK( sError, "LUA_ERROR" );
LuaHelpers::ReportScriptError(sError);
return NULL;
}
@@ -272,7 +272,6 @@ bool ActorUtil::LoadTableFromStackShowErrors( Lua *L )
if( !LuaHelpers::RunScriptOnStack(L, Error, 0, 1, true) )
{
lua_pop( L, 1 );
Dialog::OK( Error, "LUA_ERROR" );
return false;
}
@@ -286,7 +285,7 @@ bool ActorUtil::LoadTableFromStackShowErrors( Lua *L )
Error = ssprintf( "%s: must return a table", debug.short_src );
Dialog::OK( Error, "LUA_ERROR" );
LuaHelpers::ReportScriptError(Error, "LUA_ERROR");
return false;
}
return true;