Bugs item #428193, was updated on 2001-05-28 20:15
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=110493&aid=428193&group_id=10493
Category: run-time
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Brian D. Carlstrom (bdc)
Assigned to: Brian D. Carlstrom (bdc)
Summary: handling host-info errors
Initial Comment:
From: brownb@ja.gs.com (Robert E. Brown)
To: scsh-news@zurich.ai.mit.edu
Subject: handling host-info errors
Date: 07 Feb 2000 12:29:35 -0500
I'm using scsh-0.5.2 on Linux.
When my scsh script calls the function socket-connect
with a bad host name,
I get the following error
Error: name->host-info: non-zero herrno ~s ~s
1
#f
since socket-connect calls host-info, which calls name-
>host-info, which
indicates a problem by calling the error function.
I'd like to handle this condition and print a
reasonable error message that
the users of my script will understand. I want some
syntax like
with-errno-handler, but it should handle herror/host-
not-found. I have not
yet located what I need in the manual. Am I looking
in the wrong spot?
What syntax should I be using?
bob
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=110493&aid=428193&group_id=10493
|