Add state file location to errors logged when there's some issue with retrieving state (e.g. exceeds memory limit)

0.7.4.1
Justin Clark-Casey (justincc) 2012-06-21 02:09:14 +01:00
parent 68ea096f1b
commit 5709bed548
1 changed files with 4 additions and 4 deletions

View File

@ -331,15 +331,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
else else
{ {
m_log.ErrorFormat( m_log.ErrorFormat(
"[SCRIPT INSTANCE]: Unable to load script state from assembly {0}: Memory limit exceeded", "[SCRIPT INSTANCE]: Unable to load script state file {0} from assembly {1}: Memory limit exceeded",
assembly); savedState, assembly);
} }
} }
catch (Exception e) catch (Exception e)
{ {
m_log.ErrorFormat( m_log.ErrorFormat(
"[SCRIPT INSTANCE]: Unable to load script state from assembly {0}. XML is {1}. Exception {2}{3}", "[SCRIPT INSTANCE]: Unable to load script state file {0} from assembly {1}. XML is {2}. Exception {3}{4}",
assembly, xml, e.Message, e.StackTrace); savedState, assembly, xml, e.Message, e.StackTrace);
} }
} }
// else // else