(a00338777) v0.9.2.1
This commit is contained in:
@@ -142,6 +142,7 @@ namespace Barotrauma
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
handle.Exception = e;
|
||||
DebugConsole.ThrowError("Coroutine \"" + handle.Name + "\" has thrown an exception", e);
|
||||
}
|
||||
}
|
||||
@@ -182,7 +183,7 @@ namespace Barotrauma
|
||||
{
|
||||
if (handle.Thread.ThreadState.HasFlag(ThreadState.Stopped))
|
||||
{
|
||||
if ((CoroutineStatus)handle.Coroutine.Current == CoroutineStatus.Failure)
|
||||
if (handle.Exception!=null || (CoroutineStatus)handle.Coroutine.Current == CoroutineStatus.Failure)
|
||||
{
|
||||
DebugConsole.ThrowError("Coroutine \"" + handle.Name + "\" has failed");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user