浏览代码

Mono/C#: Fix unhandled exception not being printed

For some reason `mono_unhandled_exception` is not
printing the exception as its comment claims.
Use `mono_print_unhandled_exception` instead.

(cherry picked from commit f87ae395ee5dc35c44df2225d3c2ce605cae9099)
Ignacio Etcheverry 5 年之前
父节点
当前提交
c682410379
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/mono/mono_gd/gd_mono_internals.cpp

+ 1 - 1
modules/mono/mono_gd/gd_mono_internals.cpp

@@ -111,7 +111,7 @@ void tie_managed_to_unmanaged(MonoObject *managed, Object *unmanaged) {
 }
 
 void unhandled_exception(MonoException *p_exc) {
-	mono_unhandled_exception((MonoObject *)p_exc); // prints the exception as well
+	mono_print_unhandled_exception((MonoObject *)p_exc);
 
 	if (GDMono::get_singleton()->get_unhandled_exception_policy() == GDMono::POLICY_TERMINATE_APP) {
 		// Too bad 'mono_invoke_unhandled_exception_hook' is not exposed to embedders