From 513cc78f85d8c45a9492ae25034cd2357714cfdf Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Wed, 24 Jul 2019 23:13:24 +0200 Subject: Mono: Add option to keep running after unhandled exceptions By default, an unhandled exception will cause the application to be terminated; but the project setting `mono/unhandled_exception_policy` was added to change this behaviour. The editor is hard-coded to never terminate because of unhandled exceptions, as that would make writing editor plugins a painful task, and we cannot kill the editor because of a mistake in a thirdparty plugin. --- modules/mono/csharp_script.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'modules/mono/csharp_script.cpp') diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp index 078a490b22..846c84d222 100644 --- a/modules/mono/csharp_script.cpp +++ b/modules/mono/csharp_script.cpp @@ -629,7 +629,6 @@ void CSharpLanguage::frame() { if (exc) { GDMonoUtils::debug_unhandled_exception(exc); - GD_UNREACHABLE(); } } } -- cgit v1.2.3