aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Console
diff options
context:
space:
mode:
authorDalien Talbot2007-09-08 16:48:52 +0000
committerDalien Talbot2007-09-08 16:48:52 +0000
commit21227b4fdaa82b93770edfce8c6ec8f2ab187196 (patch)
treed0aeab5bc60536d37ce4f76a99356d9dfcc2e570 /OpenSim/Framework/Console
parentPartial fix for the "avatars permanently facing east" - now the rotation (diff)
downloadopensim-SC_OLD-21227b4fdaa82b93770edfce8c6ec8f2ab187196.zip
opensim-SC_OLD-21227b4fdaa82b93770edfce8c6ec8f2ab187196.tar.gz
opensim-SC_OLD-21227b4fdaa82b93770edfce8c6ec8f2ab187196.tar.bz2
opensim-SC_OLD-21227b4fdaa82b93770edfce8c6ec8f2ab187196.tar.xz
A small try/catch wrapper to prevent the CLI errors from nuking the sim.
Now will just print the backtrace on the screen and continue.
Diffstat (limited to 'OpenSim/Framework/Console')
-rw-r--r--OpenSim/Framework/Console/LogBase.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Framework/Console/LogBase.cs b/OpenSim/Framework/Console/LogBase.cs
index 119c2cd..9e2f379 100644
--- a/OpenSim/Framework/Console/LogBase.cs
+++ b/OpenSim/Framework/Console/LogBase.cs
@@ -438,7 +438,11 @@ namespace OpenSim.Framework.Console
438 Array.Resize<string>(ref tempstrarray, tempstrarray.Length - 1); 438 Array.Resize<string>(ref tempstrarray, tempstrarray.Length - 1);
439 Array.Reverse(tempstrarray); 439 Array.Reverse(tempstrarray);
440 string[] cmdparams = (string[])tempstrarray; 440 string[] cmdparams = (string[])tempstrarray;
441 RunCmd(cmd, cmdparams); 441 try {
442 RunCmd(cmd, cmdparams);
443 } catch (Exception e) {
444 MainLog.Instance.Error("Console", "Command failed with exception " + e.ToString());
445 }
442 } 446 }
443 447
444 public string LineInfo 448 public string LineInfo