We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1df8161 commit 947f1ddCopy full SHA for 947f1dd
autoload/go/util.vim
@@ -198,7 +198,13 @@ function! go#util#Exec(cmd, ...) abort
198
199
" Finally execute the command using the full, resolved path. Do not pass the
200
" unmodified command as the correct program might not exist in $PATH.
201
- return call('s:exec', [[l:bin] + a:cmd[1:]] + a:000)
+ try
202
+ return call('s:exec', [[l:bin] + a:cmd[1:]] + a:000)
203
+ catch
204
+ " TODO(bc): return v:exception as the output here or write it with
205
+ " go#util#EchoError?
206
+ return ['', 1]
207
+ endtry
208
endfunction
209
210
function! go#util#ExecInDir(cmd, ...) abort
0 commit comments