提交 e13a99cd 编写于 作者: A Armand Halbert

Added error messages to help new users diagnose problems with sqlwbconsole.sh

上级 cf46c0a4
......@@ -109,6 +109,12 @@ endfunction
function! s:start_sqlwb(type)
let cmd = g:sw_exe . ' -feedback=true -showProgress=false -abortOnError=false -showTiming=true'
if !s:nvim
if !filereadable(g:sw_exe)
echom g:sw_exe . " is not readable. Make sure the setting g:sw_exe is set and the file exists."
endif
if match(getfperm(g:sw_exe), "r.x.*") ==# -1
echom g:sw_exe . " is not executable. Make sure the permissions are set correctly."
endif
let job = job_start(cmd, {'in_mode': 'raw', 'out_mode': 'raw'})
let channel = job_getchannel(job)
call ch_setoptions(channel, {'callback': 'sw#server#handle_message'})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册