From f3b3ca6b2246cc6bbd0d35f37f0a684dcce59c6d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 16 May 2007 18:30:43 +0000 Subject: [PATCH] jit errors will now get passed upwards --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40809 --- core/systems/PluginSys.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/systems/PluginSys.cpp b/core/systems/PluginSys.cpp index 2404df7c..122af7a1 100644 --- a/core/systems/PluginSys.cpp +++ b/core/systems/PluginSys.cpp @@ -204,7 +204,7 @@ bool CPlugin::FinishMyCompile(char *error, size_t maxlength) memset(&m_ctx, 0, sizeof(m_ctx)); if (error) { - snprintf(error, maxlength, "Failed to compile (error %d)", err); + snprintf(error, maxlength, "JIT failed to compile (error %d)", err); } return false; } @@ -820,7 +820,7 @@ LoadRes CPluginManager::_LoadPlugin(CPlugin **_plugin, const char *path, bool de /* Do the actual compiling */ if (co) { - pPlugin->FinishMyCompile(NULL, 0); + pPlugin->FinishMyCompile(error, maxlength); co = NULL; }