mirror of
https://github.com/Ascyii/vim-gnupg.git
synced 2026-01-01 06:14:24 -05:00
Log v:shell_error after executing a shell command
Signed-off-by: James McCoy <vega.james@gmail.com>
This commit is contained in:
@@ -1236,6 +1236,7 @@ function s:GPGSystem(dict)
|
||||
let output = system(commandline)
|
||||
call s:GPGPostCmd()
|
||||
|
||||
call s:GPGDebug(a:dict.level, "rc: ". v:shell_error)
|
||||
call s:GPGDebug(a:dict.level, "output: ". output)
|
||||
return output
|
||||
endfunction
|
||||
@@ -1263,6 +1264,8 @@ function s:GPGExecute(dict)
|
||||
call s:GPGPreCmd()
|
||||
execute commandline
|
||||
call s:GPGPostCmd()
|
||||
|
||||
call s:GPGDebug(a:dict.level, "rc: ". v:shell_error)
|
||||
endfunction
|
||||
|
||||
" Function: s:GPGDebug(level, text) {{{2
|
||||
|
||||
Reference in New Issue
Block a user