parent
3ee902f648
commit
0ff9cd710d
@ -233,7 +233,7 @@ function! s:nrepl_call(payload) dict abort
|
|||||||
if !exists('err')
|
if !exists('err')
|
||||||
return nrepl#foreplay_connection#bdecode('l'.out.'e')
|
return nrepl#foreplay_connection#bdecode('l'.out.'e')
|
||||||
endif
|
endif
|
||||||
throw 'nREPL: '.err
|
throw 'nREPL Connection Error: '.err
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
finish
|
finish
|
||||||
@ -289,7 +289,7 @@ EOF
|
|||||||
if !exists('err')
|
if !exists('err')
|
||||||
return nrepl#foreplay_connection#bdecode('l'.out.'e')
|
return nrepl#foreplay_connection#bdecode('l'.out.'e')
|
||||||
endif
|
endif
|
||||||
throw 'nREPL: '.err
|
throw 'nREPL Connection Error: '.err
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
finish
|
finish
|
||||||
|
@ -997,7 +997,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: .*[Cc]onnection/
|
catch /^nREPL Connection Error:/
|
||||||
call delete(portfile)
|
call delete(portfile)
|
||||||
endtry
|
endtry
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user