diff -r 2394d29fda11 -r cdbcd5af7c6e core/smn_fakenatives.cpp --- a/core/smn_fakenatives.cpp Wed May 16 19:52:24 2007 +0000 +++ b/core/smn_fakenatives.cpp Wed May 16 21:53:47 2007 +0000 @@ -70,11 +70,12 @@ cell_t result = 0; native->call->PushCell(pCaller->GetMyHandle()); native->call->PushCell(params[0]); - if (native->call->Execute(&result) != SP_ERROR_NONE) + int error; + if ((error=native->call->Execute(&result)) != SP_ERROR_NONE) { if (pContext->GetContext()->n_err == SP_ERROR_NONE) { - pContext->ThrowNativeError("Error encountered while processing a dynamic native"); + pContext->ThrowNativeErrorEx(error, "Error encountered while processing a dynamic native"); } }