summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-04-10 09:57:21 +0100
committerw0rp <devw0rp@gmail.com>2018-04-10 09:57:21 +0100
commit9d006952497ec226e87d52dc0f8e9e408138f63b (patch)
tree401dcd2ded01f98032655c751bf0229bf7a066cd /autoload
parentda9a005c60963893db49f697410d39de50c06b68 (diff)
downloadale-9d006952497ec226e87d52dc0f8e9e408138f63b.zip
#1486 - Default exit_code to 1, if it isn't set.
Diffstat (limited to 'autoload')
-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.