You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
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.
This commit is contained in:
@@ -114,7 +114,7 @@ void tie_managed_to_unmanaged(MonoObject *managed, Object *unmanaged) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void unhandled_exception(MonoException *p_exc) {
|
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) {
|
if (GDMono::get_singleton()->get_unhandled_exception_policy() == GDMono::POLICY_TERMINATE_APP) {
|
||||||
// Too bad 'mono_invoke_unhandled_exception_hook' is not exposed to embedders
|
// Too bad 'mono_invoke_unhandled_exception_hook' is not exposed to embedders
|
||||||
|
|||||||
Reference in New Issue
Block a user