better output

This commit is contained in:
Glenn Maynard
2004-02-15 21:28:36 +00:00
parent 91f6445a24
commit 0f6caf79e0
+3 -3
View File
@@ -134,7 +134,7 @@ try {
{ {
CString err; CString err;
Lua::PopStack( L, 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)) ); RAGE_ASSERT_M( lua_gettop(L) == 1, ssprintf("%i", lua_gettop(L)) );
@@ -144,8 +144,8 @@ try {
lua_close( L ); lua_close( L );
return result; return result;
} catch( const CString &e ) { } catch( const CString &err ) {
RageException::Throw( "Error running \"%s\": %s", str.c_str(), e.c_str() ); RageException::Throw( "Error running \"%s\": %s", str.c_str(), err.c_str() );
} }
} }