More descriptive coroutine exception error messages, more null checks in Level.Unload

This commit is contained in:
Regalis
2016-05-30 18:33:46 +03:00
parent b512a7ec18
commit 1828198abf
2 changed files with 30 additions and 14 deletions

View File

@@ -93,7 +93,7 @@ namespace Barotrauma
catch (Exception e)
{
DebugConsole.ThrowError("Coroutine " + Coroutines[i] + " threw an exception: " + e.Message);
DebugConsole.ThrowError("Coroutine " + Coroutines[i].Name + " threw an exception: " + e.Message);
#if DEBUG
throw e;