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