From: email@example.com (Robert E. Brown)
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
since socket-connect calls host-info, which calls name-
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
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?