summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-02-13 12:13:54 +0000
committerw0rp <devw0rp@gmail.com>2017-02-13 12:13:54 +0000
commita5ec5366c402d1070027559289c8915601e9d2ec (patch)
treea6dde3ef45bd11195164ed37cced1dd231fed4c6
parentf9815fcdef28e3c9325c23ec1b0d586c256fc1f1 (diff)
downloadale-a5ec5366c402d1070027559289c8915601e9d2ec.zip
Actually catch all Job ID problems
-rw-r--r--autoload/ale/engine.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim
index ed7b933a..5337fc2d 100644
--- a/autoload/ale/engine.vim
+++ b/autoload/ale/engine.vim
@@ -19,6 +19,7 @@ function! s:GetJobID(job) abort
" job. We'll use the ID of the channel instead as the job ID.
try
return ch_info(job_getchannel(a:job)).id
+ catch
endtry
" If we fail to get the channel ID for a job, just return a 0 ID.