branch: externals/websocket
commit ee7797234ba46228852d3aae19ab12e0a4e94c9f
Author: Andrew Hyatt <ahy...@gmail.com>
Commit: Andrew Hyatt <ahy...@gmail.com>

    * websocket.el: Throw clear error when connection cannot be made.
---
 websocket.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/websocket.el b/websocket.el
index 2e8400ad05..f20830bc1a 100644
--- a/websocket.el
+++ b/websocket.el
@@ -676,6 +676,7 @@ describing the problem with the frame.
                      :extensions (mapcar 'car extensions)
                      :accept-string
                      (websocket-calculate-accept key))))
+    (unless conn (error "Could not establish the websocket connection to %s" 
url))
     (process-put conn :websocket websocket)
     (set-process-filter conn
                         (lambda (process output)

Reply via email to