From d56a47f17af1c4345fae2d0b671b6fd4f3414d5b Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sun, 3 Nov 2019 10:41:05 +0800 Subject: [PATCH] [c-interface] gnc:backtrace-if-exception returns #f if error previous would return *unspecified* when error was captured. old code seems to expect #f to signal error --- libgnucash/app-utils/c-interface.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libgnucash/app-utils/c-interface.scm b/libgnucash/app-utils/c-interface.scm index 8c0b74b464..7e16d892b4 100644 --- a/libgnucash/app-utils/c-interface.scm +++ b/libgnucash/app-utils/c-interface.scm @@ -69,7 +69,8 @@ (display captured-error (current-error-port)) (set! gnc:last-captured-error (gnc:html-string-sanitize captured-error)) (when (defined? 'gnc:warn) - (gnc:warn captured-error))) + (gnc:warn captured-error)) + #f) (else result)))) (define-public gnc:last-captured-error "")