diff --git a/OpenSim/Framework/Console/LogBase.cs b/OpenSim/Framework/Console/LogBase.cs index 119c2cdfa5..9e2f379ca8 100644 --- a/OpenSim/Framework/Console/LogBase.cs +++ b/OpenSim/Framework/Console/LogBase.cs @@ -438,7 +438,11 @@ namespace OpenSim.Framework.Console Array.Resize(ref tempstrarray, tempstrarray.Length - 1); Array.Reverse(tempstrarray); string[] cmdparams = (string[])tempstrarray; - RunCmd(cmd, cmdparams); + try { + RunCmd(cmd, cmdparams); + } catch (Exception e) { + MainLog.Instance.Error("Console", "Command failed with exception " + e.ToString()); + } } public string LineInfo