diff options
author | Justin Clarke Casey | 2008-02-20 17:54:14 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-02-20 17:54:14 +0000 |
commit | c66b5a9e71caef783781f028c356b7c07fdb1c8b (patch) | |
tree | d75094ac5c8972b535775ce4ccbf3f53aa9f3d1c /OpenSim/Framework/Console | |
parent | * Fixed a long standing race condition in physics events. Could this be the... (diff) | |
download | opensim-SC-c66b5a9e71caef783781f028c356b7c07fdb1c8b.zip opensim-SC-c66b5a9e71caef783781f028c356b7c07fdb1c8b.tar.gz opensim-SC-c66b5a9e71caef783781f028c356b7c07fdb1c8b.tar.bz2 opensim-SC-c66b5a9e71caef783781f028c356b7c07fdb1c8b.tar.xz |
Report command string on ConsoleBase.RunCommand exception
Diffstat (limited to 'OpenSim/Framework/Console')
-rw-r--r-- | OpenSim/Framework/Console/ConsoleBase.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Framework/Console/ConsoleBase.cs b/OpenSim/Framework/Console/ConsoleBase.cs index 5361e0f..2a996c5 100644 --- a/OpenSim/Framework/Console/ConsoleBase.cs +++ b/OpenSim/Framework/Console/ConsoleBase.cs | |||
@@ -376,13 +376,14 @@ namespace OpenSim.Framework.Console | |||
376 | Array.Resize<string>(ref tempstrarray, tempstrarray.Length - 1); | 376 | Array.Resize<string>(ref tempstrarray, tempstrarray.Length - 1); |
377 | Array.Reverse(tempstrarray); | 377 | Array.Reverse(tempstrarray); |
378 | string[] cmdparams = (string[]) tempstrarray; | 378 | string[] cmdparams = (string[]) tempstrarray; |
379 | |||
379 | try | 380 | try |
380 | { | 381 | { |
381 | RunCmd(cmd, cmdparams); | 382 | RunCmd(cmd, cmdparams); |
382 | } | 383 | } |
383 | catch (Exception e) | 384 | catch (Exception e) |
384 | { | 385 | { |
385 | m_log.Error("[Console]: Command failed with exception " + e.ToString()); | 386 | m_log.ErrorFormat("[Console]: Command [{0}] failed with exception {1}", command, e.ToString()); |
386 | } | 387 | } |
387 | } | 388 | } |
388 | 389 | ||