mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
Restore "friendly errors" to the XEngine
This commit is contained in:
@@ -197,13 +197,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
}
|
||||
catch (TargetInvocationException tie)
|
||||
{
|
||||
// Grab the inner exception and rethrow it, unless the inner
|
||||
// exception is an EventAbortException as this indicates event
|
||||
// invokation termination due to a state change.
|
||||
if ( !(tie.InnerException is EventAbortException) )
|
||||
{
|
||||
throw tie.InnerException;
|
||||
}
|
||||
// Grab the inner exception and rethrow it, unless the inner
|
||||
// exception is an EventAbortException as this indicates event
|
||||
// invocation termination due to a state change.
|
||||
// DO NOT THROW JUST THE INNER EXCEPTION!
|
||||
// FriendlyErrors depends on getting the whole exception!
|
||||
//
|
||||
if ( !(tie.InnerException is EventAbortException) )
|
||||
{
|
||||
throw tie;
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user