Gnucash BugTrack notification

jcollins moved PR#94 from incoming to fixed
Message summary for PR#94
        From: [EMAIL PROTECTED]
        Subject: Problem with Guile Support
        Date: unknown
        0 replies       0 followups

====> ORIGINAL MESSAGE FOLLOWS <====

Received: (qmail 15438 invoked from network); 29 Feb 2000 04:52:07 -0000
Received: from localhost (127.0.0.1)
  by localhost with SMTP; 29 Feb 2000 04:52:07 -0000
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Problem with Guile Support

Full_Name: Christopher Browne
Version: 1.3.1
GUI: gnucash-gnome
OS: Linux (Debian unstable)
Submission from: (NULL) (216.88.127.146)


When I run a (sadly) buggy report, gnucash aborts altogether, with the
complaint
that it could not find the Guile function gnc:error->string.

The problem appears centred in src/guile/gfec.c, which is the one file
referencing the
nonexistant function.

Changing it thus seems to clear up the problem:

static SCM
gfec_catcher(void *data, SCM tag, SCM throw_args)
{
  SCM func;
  SCM result;
  char *msg = NULL;

  /* func = gh_eval_str("gnc:error->string");  Old, bad code...*/
  func = gh_eval_str("gnc:error"); /* Replacement */
  if (gh_procedure_p(func))
  {
    result = gh_call2(func, tag, throw_args);
    if (gh_string_p(result))
      msg = gh_scm2newstr(result, NULL);
  }

It's possible that there is a better change that might allow the error results
to get "trapped" and submitted to the GUI rather than to stderr


--
Gnucash Developer's List 
To unsubscribe send empty email to: [EMAIL PROTECTED]

Reply via email to