core/smn_fakenatives.cpp
changeset 805 cdbcd5af7c6e
parent 699 46c97376db0e
child 1011 b413072540fd
     1.1 --- a/core/smn_fakenatives.cpp	Wed May 16 19:52:24 2007 +0000
     1.2 +++ b/core/smn_fakenatives.cpp	Wed May 16 21:53:47 2007 +0000
     1.3 @@ -70,11 +70,12 @@
     1.4  	cell_t result = 0;
     1.5  	native->call->PushCell(pCaller->GetMyHandle());
     1.6  	native->call->PushCell(params[0]);
     1.7 -	if (native->call->Execute(&result) != SP_ERROR_NONE)
     1.8 +	int error;
     1.9 +	if ((error=native->call->Execute(&result)) != SP_ERROR_NONE)
    1.10  	{
    1.11  		if (pContext->GetContext()->n_err == SP_ERROR_NONE)
    1.12  		{
    1.13 -			pContext->ThrowNativeError("Error encountered while processing a dynamic native");
    1.14 +			pContext->ThrowNativeErrorEx(error, "Error encountered while processing a dynamic native");
    1.15  		}
    1.16  	}
    1.17