diff options
author | UbitUmarov | 2018-11-26 19:57:42 +0000 |
---|---|---|
committer | UbitUmarov | 2018-11-26 19:57:42 +0000 |
commit | 7258531e3ba8ebdb1e9cc738720a79ca6602ee9a (patch) | |
tree | c3081e77c63f7cb6f7841c3e23f0a78a0afd41b4 /OpenSim/Region | |
parent | Yengine: simplify ossl severe error message, and make it on debug channel lik... (diff) | |
download | opensim-SC-7258531e3ba8ebdb1e9cc738720a79ca6602ee9a.zip opensim-SC-7258531e3ba8ebdb1e9cc738720a79ca6602ee9a.tar.gz opensim-SC-7258531e3ba8ebdb1e9cc738720a79ca6602ee9a.tar.bz2 opensim-SC-7258531e3ba8ebdb1e9cc738720a79ca6602ee9a.tar.xz |
show prim ID on script error
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index a98311e..8cc48bd 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |||
@@ -929,6 +929,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
929 | string text = e.InnerException.Message + | 929 | string text = e.InnerException.Message + |
930 | "(script: " + ScriptName + | 930 | "(script: " + ScriptName + |
931 | " event: " + data.EventName + | 931 | " event: " + data.EventName + |
932 | " primID:" + Part.UUID.ToString() + | ||
932 | " at " + Part.AbsolutePosition + ")"; | 933 | " at " + Part.AbsolutePosition + ")"; |
933 | if (text.Length > 1000) | 934 | if (text.Length > 1000) |
934 | text = text.Substring(0, 1000); | 935 | text = text.Substring(0, 1000); |
diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs b/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs index 1e5416f..7a95a4a 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/XMRInstRun.cs | |||
@@ -492,13 +492,12 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
492 | if (e.Message != null) | 492 | if (e.Message != null) |
493 | msg.Append(e.Message); | 493 | msg.Append(e.Message); |
494 | 494 | ||
495 | msg.Append(" (prim: "); | ||
496 | msg.Append(m_Part.Name); | ||
497 | |||
498 | msg.Append(" script: "); | 495 | msg.Append(" script: "); |
499 | msg.Append(m_Item.Name); | 496 | msg.Append(m_Item.Name); |
500 | msg.Append(" event: "); | 497 | msg.Append(" event: "); |
501 | msg.Append(ev.ToString()); | 498 | msg.Append(ev.ToString()); |
499 | msg.Append(" (primID: "); | ||
500 | msg.Append(m_Part.UUID.ToString()); | ||
502 | msg.Append(" at: <"); | 501 | msg.Append(" at: <"); |
503 | Vector3 pos = m_Part.AbsolutePosition; | 502 | Vector3 pos = m_Part.AbsolutePosition; |
504 | msg.Append((int)Math.Floor(pos.X)); | 503 | msg.Append((int)Math.Floor(pos.X)); |