Grab stacktrace on signal.
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using NUnit.Framework;
|
||||
using PkmnLibSharp.Battling;
|
||||
using PkmnLibSharp.Utilities;
|
||||
|
||||
namespace PkmnLibSharpTests
|
||||
{
|
||||
@@ -20,6 +21,8 @@ namespace PkmnLibSharpTests
|
||||
{
|
||||
Console.WriteLine($"[{level.ToString().ToUpperInvariant()}] {s}");
|
||||
});
|
||||
|
||||
SignalHandler.SetSignalListener(s => throw new Exception("Encountered a catastrophic signal. \n" + s));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user