[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error reporting
From: |
Ludovic Courtès |
Subject: |
Re: Error reporting |
Date: |
Sun, 23 Nov 2008 13:29:12 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) |
Hi,
Sebastian Tennant <address@hidden> writes:
> I very much doubt it's possible, but is there any way of getting Guile
> to include a timestamp in it's error reporting?
>
> For example:
>
> guile> foo
> 2008-11-20 23:17:11 ERROR: Unbound variable: foo
> 2008-11-20 23:17:11 ABORT: (unbound-variable)
I like Neil's idea of using a soft output port to deal with that.
Another way would be to enclose web scripts in a `lazy-catch' whose
handler displays errors in an arbitrarily nice way: adding a timestamp,
showing the stack trace, etc.
Thanks,
Ludo'.