From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.bugs Subject: gethost error display Date: Sat, 15 Feb 2003 07:38:45 +1000 Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Message-ID: <871y2av8yi.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045259100 20655 80.91.224.249 (14 Feb 2003 21:45:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 14 Feb 2003 21:45:00 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18jndj-0005N1-00 for ; Fri, 14 Feb 2003 22:44:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18jne6-0001Oa-02 for guile-bugs@m.gmane.org; Fri, 14 Feb 2003 16:45:22 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18jnde-0001B7-00 for bug-guile@gnu.org; Fri, 14 Feb 2003 16:44:54 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18jnZO-0007WT-00 for bug-guile@gnu.org; Fri, 14 Feb 2003 16:40:32 -0500 Original-Received: from sunny.pacific.net.au ([203.2.228.40]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18jnY9-0006yP-00 for bug-guile@gnu.org; Fri, 14 Feb 2003 16:39:14 -0500 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h1ELdCMr019058 for ; Sat, 15 Feb 2003 08:39:12 +1100 (EST) Original-Received: from localhost (ppp102.dyn228.pacific.net.au [203.143.228.102]) by wisma.pacific.net.au with ESMTP id IAA08573 for ; Sat, 15 Feb 2003 08:39:10 +1100 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 18jnXi-0001OQ-00; Sat, 15 Feb 2003 07:38:46 +1000 Original-To: bug-guile@gnu.org User-Agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.2 (i386-pc-linux-gnu) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GUILE, GNU's Ubiquitous Extension Language List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.bugs:672 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:672 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