unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* gethost error display
@ 2003-02-14 21:38 Kevin Ryde
  2004-06-22 15:51 ` Rob Browning
  0 siblings, 1 reply; 4+ messages in thread
From: Kevin Ryde @ 2003-02-14 21:38 UTC (permalink / raw)


In guile 1.6.3 built on a recent i386 debian, running interactively
and trying to find a non-existant host with

    (gethost "x")

produces

    standard input:1:1: In procedure gethost in expression (gethost "x"):
    standard input:1:1: Unknown host
    Exception during displaying of error: misc-error
    ABORT: (host-not-found)

I take it "Exception during displaying of error" means what it says.

Nosing around the source it seems the error is thrown with string
"Host name lookup failure" but with an extra argument (the bad host
name), and simple-format objects to that extra.

I don't know if the gethost error should be changed, it might break
existing code to do so.

But it might be nice if the default error handler was more forgiving
of exception arguments.  If the arguments are pretty much arbitrary
then perhaps some sort of heuristic like using simple-format only if
there's the right number of ~A or ~S in the string.


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-08-12  1:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-14 21:38 gethost error display Kevin Ryde
2004-06-22 15:51 ` Rob Browning
2004-07-01  0:40   ` Kevin Ryde
2004-08-12  1:05     ` Rob Browning

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).