Catch more connection errors
This commit is contained in:
parent
5213b65b97
commit
5e0d266ae4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user