aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/autoload/provider/node.vim2
-rw-r--r--runtime/autoload/provider/pythonx.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/autoload/provider/node.vim b/runtime/autoload/provider/node.vim
index 3dde18022e..493eecf433 100644
--- a/runtime/autoload/provider/node.vim
+++ b/runtime/autoload/provider/node.vim
@@ -81,7 +81,7 @@ function! provider#node#Require(host) abort
catch
echomsg v:throwpoint
echomsg v:exception
- for row in job.stderr
+ for row in get(job, 'stderr', [])
echomsg row
endfor
endtry
diff --git a/runtime/autoload/provider/pythonx.vim b/runtime/autoload/provider/pythonx.vim
index 1c77eabe23..f9aa09b16b 100644
--- a/runtime/autoload/provider/pythonx.vim
+++ b/runtime/autoload/provider/pythonx.vim
@@ -29,7 +29,7 @@ function! provider#pythonx#Require(host) abort
catch
echomsg v:throwpoint
echomsg v:exception
- for row in job.stderr
+ for row in get(job, 'stderr', [])
echomsg row
endfor
endtry