From bf3e1956fb2ecfbe83a9357e9046bc88901d97de Mon Sep 17 00:00:00 2001 From: MW Date: Mon, 2 Mar 2009 17:29:21 +0000 Subject: Added some debug output to CreateCommsManagerPlugin --- .../CreateCommsManager/CreateCommsManagerPlugin.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'OpenSim/ApplicationPlugins') diff --git a/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs b/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs index a1b3960..acfc49c 100644 --- a/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs +++ b/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs @@ -118,7 +118,17 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager if (hgrid) { - HGOpenSimNode hgNode = (HGOpenSimNode)openSim; + HGOpenSimNode hgNode = null; + try + { + hgNode = (HGOpenSimNode)openSim; + } + catch (Exception e) + { + m_log.Error("[CreateComms] " + e.Message); + m_log.Error("[CreateComms] The OpenSim application class was : " + openSim.ToString()); + Environment.Exit(1); + } // Standalone mode is determined by !startupConfig.GetBoolean("gridmode", false) if (m_openSim.ConfigurationSettings.Standalone) -- cgit v1.1