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)
|
let output = system(commandline)
|
||||||
call s:GPGPostCmd()
|
call s:GPGPostCmd()
|
||||||
|
|
||||||
|
call s:GPGDebug(a:dict.level, "rc: ". v:shell_error)
|
||||||
call s:GPGDebug(a:dict.level, "output: ". output)
|
call s:GPGDebug(a:dict.level, "output: ". output)
|
||||||
return output
|
return output
|
||||||
endfunction
|
endfunction
|
||||||
@@ -1263,6 +1264,8 @@ function s:GPGExecute(dict)
|
|||||||
call s:GPGPreCmd()
|
call s:GPGPreCmd()
|
||||||
execute commandline
|
execute commandline
|
||||||
call s:GPGPostCmd()
|
call s:GPGPostCmd()
|
||||||
|
|
||||||
|
call s:GPGDebug(a:dict.level, "rc: ". v:shell_error)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Function: s:GPGDebug(level, text) {{{2
|
" Function: s:GPGDebug(level, text) {{{2
|
||||||
|
|||||||
Reference in New Issue
Block a user