From d66163ab746d8625ab3db8906f9018335ec533b7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 17 Feb 2005 05:32:50 +0000 Subject: [PATCH] fix error dialog displayed twice: error handling for RunScript is up to the caller --- stepmania/src/LuaManager.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stepmania/src/LuaManager.cpp b/stepmania/src/LuaManager.cpp index 176692f016..915fb9b5f1 100644 --- a/stepmania/src/LuaManager.cpp +++ b/stepmania/src/LuaManager.cpp @@ -304,10 +304,7 @@ bool LuaManager::RunScript( const CString &sScript, const CString &sName, CStrin int ret = lua_pcall( L, 0, iReturnValues, 0 ); if( ret ) { - CString err; - LuaManager::PopStack( err ); - CString sError = ssprintf( "Lua runtime error evaluating \"%s\": %s", sScript.c_str(), err.c_str() ); - Dialog::OK( sError, "LUA_ERROR" ); + LuaManager::PopStack( sError ); return false; } }