aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index aa9ace4..dcf3043 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -825,6 +825,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
825 825
826 string FormatException(Exception e) 826 string FormatException(Exception e)
827 { 827 {
828 if (e.InnerException == null) // Not a normal runtime error
829 return e.ToString();
830
828 string message = "Runtime error:\n" + e.InnerException.StackTrace; 831 string message = "Runtime error:\n" + e.InnerException.StackTrace;
829 string[] lines = message.Split(new char[] {'\n'}); 832 string[] lines = message.Split(new char[] {'\n'});
830 833