vm errors from dynamic natives will now be explained more clearly to the calling plugin
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40811
This commit is contained in:
parent
f17a61e709
commit
6328445043
@ -70,11 +70,12 @@ cell_t FakeNativeRouter(IPluginContext *pContext, const cell_t *params, void *pD
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user