diff options
author | w0rp <devw0rp@gmail.com> | 2017-03-04 23:34:57 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-03-04 23:34:57 +0000 |
commit | c1947d13cf7ec2e15058f5eea232d9b0c2377d44 (patch) | |
tree | af779b9838bcdfffc8dfc62add28147c3a32a530 /ale_linters/go | |
parent | fb8df75ac324fe8c1adc2bfb8a63ee6eedc60b4d (diff) | |
download | ale-c1947d13cf7ec2e15058f5eea232d9b0c2377d44.zip |
#384 Try and stop stupid errors coming from the gobuild functions
Diffstat (limited to 'ale_linters/go')
-rw-r--r-- | ale_linters/go/gobuild.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ale_linters/go/gobuild.vim b/ale_linters/go/gobuild.vim index e6ca9f97..0bac9f26 100644 --- a/ale_linters/go/gobuild.vim +++ b/ale_linters/go/gobuild.vim @@ -101,6 +101,12 @@ function! ale_linters#go#gobuild#CopyFiles(buffer, golist_output) abort endfunction function! ale_linters#go#gobuild#GetCommand(buffer, copy_output) abort + " If for some reason we don't get any output from the last command, stop + " here. + if empty(a:copy_output) + return '' + endif + let l:tempdir = a:copy_output[0] let l:importpath = s:PackageImportPath(a:buffer) |