gnucash maint: [gnc-report] dump backtrace to console when report crashes

Christopher Lam clam at code.gnucash.org
Wed Jan 6 09:11:51 EST 2021


Updated	 via  https://github.com/Gnucash/gnucash/commit/00fb53e0 (commit)
	from  https://github.com/Gnucash/gnucash/commit/ae1e2714 (commit)



commit 00fb53e0bf304051020d3206f7feab83790c1cc9
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Wed Jan 6 22:09:18 2021 +0800

    [gnc-report] dump backtrace to console when report crashes
    
    because gnc:backtrace-if-exception, not used anymore, would dump guile
    backtrace to console. restore this behaviour.

diff --git a/gnucash/report/gnc-report.c b/gnucash/report/gnc-report.c
index c8ed10c15..14b4dafb6 100644
--- a/gnucash/report/gnc-report.c
+++ b/gnucash/report/gnc-report.c
@@ -230,6 +230,7 @@ gnc_run_report_with_error_handling (gint report_id, gchar ** data, gchar **errms
     {
         *errmsg = gnc_scm_to_utf8_string (captured_error);
         *data = NULL;
+        PWARN ("Error in report: %s", *errmsg);
         return FALSE;
     }
 }



Summary of changes:
 gnucash/report/gnc-report.c | 1 +
 1 file changed, 1 insertion(+)



More information about the gnucash-changes mailing list