(scm_resolv_error): don't cause an exception while
authorRob Browning <rlb@defaultvalue.org>
Sat, 7 Aug 2004 03:48:17 +0000 (03:48 +0000)
committerRob Browning <rlb@defaultvalue.org>
Sat, 7 Aug 2004 03:48:17 +0000 (03:48 +0000)
trying to throw an exception -- call scm_misc_error with correct
arguments.  The previous arguments needed a format escape that
wasn't in any of the format strings.

libguile/net_db.c

index d13c5f7..5395991 100644 (file)
@@ -110,7 +110,7 @@ static void scm_resolv_error (const char *subr, SCM bad_value)
 #ifdef HAVE_HSTRERROR
       errmsg = (const char *) hstrerror (h_errno);
 #endif
-      scm_error (key, subr, errmsg, scm_cons (bad_value, SCM_EOL), SCM_EOL);
+      scm_error (key, subr, errmsg, SCM_BOOL_F, SCM_EOL);
     }
 }