[gjs: 1/6] gjs_callback_closure: Log uncatchable exceptions, don't just exit
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 1/6] gjs_callback_closure: Log uncatchable exceptions, don't just exit
- Date: Thu, 1 Feb 2018 04:33:26 +0000 (UTC)
commit 359c0f4132d8170def99acf40c8af182a3de7b62
Author: Simon McVittie <smcv debian org>
Date: Fri Jan 26 09:45:43 2018 +0000
gjs_callback_closure: Log uncatchable exceptions, don't just exit
Signed-off-by: Simon McVittie <smcv debian org>
gi/function.cpp | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gi/function.cpp b/gi/function.cpp
index 97573da0..2f621f2a 100644
--- a/gi/function.cpp
+++ b/gi/function.cpp
@@ -416,6 +416,8 @@ out:
exit(code);
/* Some other uncatchable exception, e.g. out of memory */
+ g_critical("Function %s terminated with uncatchable exception",
+ g_base_info_get_name(trampoline->info));
exit(1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]