From: Chris Dennis <cgdennis@btinternet.com>
To: Guile Users <guile-user@gnu.org>
Subject: Parsing eval errors
Date: Sat, 06 Jun 2009 17:53:12 +0100 [thread overview]
Message-ID: <4A2A9EF8.8040002@btinternet.com> (raw)
Hello Guilers
Is there some code anywhere for parsing the error information caught
from local-eval?
The following code is the best I have come up with so far, but the
messages it produces aren't pretty:
(define (error-handler key . args)
(display (object->string key))
(for-each (lambda (arg)
(display (_ ", arg="))
(display (object->string arg)))
args)
(newline))
(catch #t (local-eval s-expr (the-environment))
error-handler)
regards
Chris
--
Chris Dennis cgdennis@btinternet.com
Fordingbridge, Hampshire, UK
next reply other threads:[~2009-06-06 16:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-06 16:53 Chris Dennis [this message]
2009-06-11 21:57 ` Parsing eval errors Neil Jerram
2009-06-14 14:40 ` Chris Dennis
2009-06-14 20:47 ` Neil Jerram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A2A9EF8.8040002@btinternet.com \
--to=cgdennis@btinternet.com \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).