(nnimap-open-connection): Give an error if nnimap-stream is unknown.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 4 Oct 2010 20:44:18 +0000 (22:44 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 4 Oct 2010 20:44:18 +0000 (22:44 +0200)
lisp/nnimap.el

index 0be841a..c3c25cb 100644 (file)
@@ -324,7 +324,9 @@ textual parts.")
                           (if (netrc-find-service-number "imaps")
                               "imaps"
                             "993"))))
-               '("143" "993" "imap" "imaps"))))
+               '("143" "993" "imap" "imaps"))
+              (t
+               (error "Unknown stream type: %s" nnimap-stream))))
             connection-result login-result credentials)
        (setf (nnimap-process nnimap-object)
              (get-buffer-process (current-buffer)))