mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
Fix coroutine exception handling
This commit is contained in:
1 file changed
+2
-1
@@ -343,8 +343,9 @@ namespace Reactor
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Logger<ReactorPlugin>.Error(e.ToString());
|
||||
Logger<ReactorPlugin>.Error($"Exception in coroutine of type {enumerator?.GetType().AssemblyQualifiedName}: {e}");
|
||||
Stop(FindOriginalCoroutine(enumerator)); // We want the entire coroutine hierarchy to stop when an error happen
|
||||
return;
|
||||
}
|
||||
|
||||
var next = enumerator.Current;
|
||||
|
||||
Reference in new issue
Block a user