Catch more connection errors

This commit is contained in:
Tim Pope 2013-01-01 20:15:02 -05:00
parent 5213b65b97
commit 5e0d266ae4

View File

@ -920,7 +920,7 @@ function! s:leiningen_connect()
let s:leiningen_repl_ports[b:leiningen_root] = getftime(portfile) let s:leiningen_repl_ports[b:leiningen_root] = getftime(portfile)
try try
call s:register_connection(nrepl#foreplay_connection#open(port), b:leiningen_root) call s:register_connection(nrepl#foreplay_connection#open(port), b:leiningen_root)
catch /^nREPL: Connection/ catch /^nREPL: .*[Cc]onnection/
call delete(portfile) call delete(portfile)
endtry endtry
endif endif