This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Error Messages
- To: guile@cygnus.com
- Subject: Error Messages
- From: Westley A Sherman <wsherman@umich.edu>
- Date: Mon, 7 Jun 1999 14:28:45 -0400 (EDT)
Is there an easy way to get informative error messages using the
gh_eval_str functions?
Using the interpreter one can get messages such as
guile> (defin x 1)
ERROR: In expression (defin x 1):
ERROR: Unbound variable: defin
ABORT: (misc-error)
Type "(backtrace)" to get more information.
guile>
but with
gh_eval_str_with_standard_handler("(defin x 1)");
one only gets the message
Just got an error; tag is
misc-error
which is fairly terse from the standpoint of debugging guile code.
Thanks,
Westley