File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -193,23 +193,21 @@ function! go#util#Exec(cmd, ...) abort
193
193
" CheckBinPath will show a warning for us.
194
194
let l: bin = go#path#CheckBinPath (l: bin )
195
195
if empty (l: bin )
196
- return [' ' , 1 ]
196
+ return [' command not found ' , 1 ]
197
197
endif
198
198
199
199
" Finally execute the command using the full, resolved path. Do not pass the
200
200
" unmodified command as the correct program might not exist in $PATH.
201
201
try
202
202
return call (' s:exec' , [[l: bin ] + a: cmd [1 :]] + a: 000 )
203
203
catch
204
- " TODO(bc): return v:exception as the output here or write it with
205
- " go#util#EchoError?
206
- return [' ' , 1 ]
204
+ return [v: exception , 1 ]
207
205
endtry
208
206
endfunction
209
207
210
208
function ! go#util#ExecInDir (cmd, ... ) abort
211
209
if ! isdirectory (expand (" %:p:h" ))
212
- return [' ' , 1 ]
210
+ return [' not a directory ' , 1 ]
213
211
endif
214
212
215
213
let cd = exists (' *haslocaldir' ) && haslocaldir () ? ' lcd ' : ' cd '
You can’t perform that action at this time.
0 commit comments