From 0f6caf79e095db2c5b4290176eaab71e61120181 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 15 Feb 2004 21:28:36 +0000 Subject: [PATCH] better output --- stepmania/src/LuaHelpers.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/LuaHelpers.cpp b/stepmania/src/LuaHelpers.cpp index 32e58a9b63..6a4eb60b1c 100644 --- a/stepmania/src/LuaHelpers.cpp +++ b/stepmania/src/LuaHelpers.cpp @@ -134,7 +134,7 @@ try { { CString err; Lua::PopStack( L, err ); - RageException::Throw( err ); + RageException::Throw( "Runtime error running \"%s\": %s", str.c_str(), err.c_str() ); } RAGE_ASSERT_M( lua_gettop(L) == 1, ssprintf("%i", lua_gettop(L)) ); @@ -144,8 +144,8 @@ try { lua_close( L ); return result; -} catch( const CString &e ) { - RageException::Throw( "Error running \"%s\": %s", str.c_str(), e.c_str() ); +} catch( const CString &err ) { + RageException::Throw( "Error running \"%s\": %s", str.c_str(), err.c_str() ); } }