Mantis #2293
Fix a null reference exception when the exception thrown by a script is not a TargetInvocationException0.6.0-stable
parent
6758ecc403
commit
538f51f36d
|
@ -825,6 +825,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
|||
|
||||
string FormatException(Exception e)
|
||||
{
|
||||
if (e.InnerException == null) // Not a normal runtime error
|
||||
return e.ToString();
|
||||
|
||||
string message = "Runtime error:\n" + e.InnerException.StackTrace;
|
||||
string[] lines = message.Split(new char[] {'\n'});
|
||||
|
||||
|
|
Loading…
Reference in New Issue