aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/ScriptEngine/RegionScriptEnginePlugin.cs
diff options
context:
space:
mode:
authorTedd Hansen2008-09-21 00:42:27 +0000
committerTedd Hansen2008-09-21 00:42:27 +0000
commit9c8aeff27c503beedc2e8566a4a7401dfe3fd15d (patch)
tree29033a3a0cf3b482a2147be29cb40d4fea778d63 /OpenSim/ApplicationPlugins/ScriptEngine/RegionScriptEnginePlugin.cs
parentOne small bug fixed, now it compiles. (diff)
downloadopensim-SC_OLD-9c8aeff27c503beedc2e8566a4a7401dfe3fd15d.zip
opensim-SC_OLD-9c8aeff27c503beedc2e8566a4a7401dfe3fd15d.tar.gz
opensim-SC_OLD-9c8aeff27c503beedc2e8566a4a7401dfe3fd15d.tar.bz2
opensim-SC_OLD-9c8aeff27c503beedc2e8566a4a7401dfe3fd15d.tar.xz
Some error handling to avoid errors in SEC
Diffstat (limited to '')
-rw-r--r--OpenSim/ApplicationPlugins/ScriptEngine/RegionScriptEnginePlugin.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/OpenSim/ApplicationPlugins/ScriptEngine/RegionScriptEnginePlugin.cs b/OpenSim/ApplicationPlugins/ScriptEngine/RegionScriptEnginePlugin.cs
index a0622ea..c4f4bbe 100644
--- a/OpenSim/ApplicationPlugins/ScriptEngine/RegionScriptEnginePlugin.cs
+++ b/OpenSim/ApplicationPlugins/ScriptEngine/RegionScriptEnginePlugin.cs
@@ -45,8 +45,17 @@ namespace OpenSim.ApplicationPlugins.ScriptEngine
45 { 45 {
46 // New region is being created 46 // New region is being created
47 // Create a new script engine 47 // Create a new script engine
48 scriptEngine = Activator.CreateInstance(ComponentRegistry.scriptEngines[tempScriptEngineName]) as RegionScriptEngineBase; 48 try
49 scriptEngine.Initialize(scene, source); 49 {
50 scriptEngine =
51 Activator.CreateInstance(ComponentRegistry.scriptEngines[tempScriptEngineName]) as
52 RegionScriptEngineBase;
53 scriptEngine.Initialize(scene, source);
54 }
55 catch (Exception ex)
56 {
57 scriptEngine.m_log.Error("[ScriptEngine]: Unable to load engine \"" + tempScriptEngineName + "\": " + ex.ToString());
58 }
50 } 59 }
51 60
52 public void PostInitialise() 61 public void PostInitialise()