Report command string on ConsoleBase.RunCommand exception

ThreadPoolClientBranch
Justin Clarke Casey 2008-02-20 17:54:14 +00:00
parent 07774473af
commit c66b5a9e71
2 changed files with 4 additions and 3 deletions

View File

@ -489,7 +489,7 @@ namespace OpenSim.Framework.Communications.Cache
}
*/
// Notify callers
// Notify requesters for this asset
lock (RequestLists)
{
AssetRequestsList reqList = RequestLists[assetID];

View File

@ -376,13 +376,14 @@ namespace OpenSim.Framework.Console
Array.Resize<string>(ref tempstrarray, tempstrarray.Length - 1);
Array.Reverse(tempstrarray);
string[] cmdparams = (string[]) tempstrarray;
try
{
RunCmd(cmd, cmdparams);
}
catch (Exception e)
{
m_log.Error("[Console]: Command failed with exception " + e.ToString());
m_log.ErrorFormat("[Console]: Command [{0}] failed with exception {1}", command, e.ToString());
}
}