Skip to content

Commit

Permalink
plugin: output error string instead of out
Browse files Browse the repository at this point in the history
  • Loading branch information
bhcleek committed Oct 8, 2019
1 parent 947f1dd commit f2a6972
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function! s:GoInstallBinaries(updateBinaries, ...)
" first download the binary
let [l:out, l:err] = go#util#Exec(l:get_cmd + [l:importPath])
if l:err
call go#util#EchoError(printf('Error installing %s: %s', l:importPath, l:out))
call go#util#EchoError(printf('Error installing %s: %s', l:importPath, l:err))
endif

call call(Restore_modules, [])
Expand All @@ -185,7 +185,7 @@ function! s:GoInstallBinaries(updateBinaries, ...)
" first download the binary
let [l:out, l:err] = go#util#Exec(l:get_cmd + [l:importPath])
if l:err
call go#util#EchoError(printf('Error downloading %s: %s', l:importPath, l:out))
call go#util#EchoError(printf('Error downloading %s: %s', l:importPath, l:err))
endif

" and then build and install it
Expand All @@ -196,7 +196,7 @@ function! s:GoInstallBinaries(updateBinaries, ...)

let [l:out, l:err] = go#util#Exec(l:build_cmd)
if l:err
call go#util#EchoError(printf('Error installing %s: %s', l:importPath, l:out))
call go#util#EchoError(printf('Error installing %s: %s', l:importPath, l:err))
endif


Expand Down

0 comments on commit f2a6972

Please sign in to comment.