mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Reports: Don't crash when report generator fails without backtrace.
This commit is contained in:
parent
50ca650ad3
commit
1da2464577
@ -227,13 +227,20 @@ gnc_run_report_with_error_handling (gint report_id, gchar ** data, gchar **errms
|
|||||||
*errmsg = NULL;
|
*errmsg = NULL;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else
|
else if (scm_is_string (captured_error))
|
||||||
{
|
{
|
||||||
*errmsg = gnc_scm_to_utf8_string (captured_error);
|
*errmsg = gnc_scm_to_utf8_string (captured_error);
|
||||||
*data = NULL;
|
*data = NULL;
|
||||||
PWARN ("Error in report: %s", *errmsg);
|
PWARN ("Error in report: %s", *errmsg);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
*data = nullptr;
|
||||||
|
PWARN("Report %s Failed to generate html but didn't raise a Scheme exception.",
|
||||||
|
gnc_report_name (report));
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gchar*
|
gchar*
|
||||||
|
Loading…
Reference in New Issue
Block a user