changeset 84643:9cf2bf22d7ee

(socks-open-network-stream): Signal an explicit error if the port associated with a service string can't be found.
author Glenn Morris <rgm@gnu.org>
date Wed, 19 Sep 2007 07:52:30 +0000
parents 2173cc2d1b14
children 630c599116d6
files lisp/net/socks.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/net/socks.el	Wed Sep 19 07:52:19 2007 +0000
+++ b/lisp/net/socks.el	Wed Sep 19 07:52:30 2007 +0000
@@ -546,7 +546,10 @@
 			  atype
 			  host
 			  (if (stringp service)
-			      (socks-find-services-entry service)
+			      (or
+			       (socks-find-services-entry service)
+			       (error "Unable to find port for service `%s'"
+				      service))
 			    service))
       (puthash 'buffer buffer info)
       (puthash 'host host info)