@@ -165,7 +165,7 @@ function! s:GoInstallBinaries(updateBinaries, ...)
165165 " first download the binary
166166 let [l: out , l: err ] = go#util#Exec (l: get_cmd + [l: importPath ])
167167 if l: err
168- call go#util#EchoError (printf (' Error installing %s: %s' , l: importPath , l: out ))
168+ call go#util#EchoError (printf (' Error installing %s: %s' , l: importPath , l: err ))
169169 endif
170170
171171 call call (Restore_modules, [])
@@ -185,7 +185,7 @@ function! s:GoInstallBinaries(updateBinaries, ...)
185185 " first download the binary
186186 let [l: out , l: err ] = go#util#Exec (l: get_cmd + [l: importPath ])
187187 if l: err
188- call go#util#EchoError (printf (' Error downloading %s: %s' , l: importPath , l: out ))
188+ call go#util#EchoError (printf (' Error downloading %s: %s' , l: importPath , l: err ))
189189 endif
190190
191191 " and then build and install it
@@ -196,7 +196,7 @@ function! s:GoInstallBinaries(updateBinaries, ...)
196196
197197 let [l: out , l: err ] = go#util#Exec (l: build_cmd )
198198 if l: err
199- call go#util#EchoError (printf (' Error installing %s: %s' , l: importPath , l: out ))
199+ call go#util#EchoError (printf (' Error installing %s: %s' , l: importPath , l: err ))
200200 endif
201201
202202
0 commit comments