summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/ale/job.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/job.vim b/autoload/ale/job.vim
index 2909dab4..2711e99f 100644
--- a/autoload/ale/job.vim
+++ b/autoload/ale/job.vim
@@ -119,7 +119,7 @@ function! s:VimCloseCallback(channel) abort
if job_status(l:job) is# 'dead'
try
if !empty(l:info) && has_key(l:info, 'exit_cb')
- call ale#util#GetFunction(l:info.exit_cb)(l:job_id, l:info.exit_code)
+ call ale#util#GetFunction(l:info.exit_cb)(l:job_id, get(l:info, 'exit_code', 1))
endif
finally
" Automatically forget about the job after it's done.