Skip to content

Commit c0ab46e

Browse files
committed
Add jobstart() errors to debug log
This should make issues like #14 significantly easier to debug.
1 parent 863cb19 commit c0ab46e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

autoload/lumen.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ func lumen#fork_job()
112112
let options = #{on_stdout: function('lumen#on_stdout'), on_stderr: function('lumen#on_stderr'), on_exit: function('lumen#on_exit')}
113113
silent! let s:job = jobstart(command, options)
114114
if s:job == 0 || s:job == -1
115+
call lumen#debug#log_err('jobstart() failed: ' . v:errmsg)
115116
call lumen#on_exit(0, 256 - s:job, 0)
116117
endif
117118
else

0 commit comments

Comments
 (0)