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;
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() );
}
}