From bf2d1f18e7896f68c1455b74a96e5649bc28889e Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 4 Jul 2017 23:47:49 +0300 Subject: [PATCH] Feat(.vim/ftplugin/python.vim): report if there was an error calling chmod --- .vim/ftplugin/python.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vim/ftplugin/python.vim b/.vim/ftplugin/python.vim index 75f2e51..2aa92b0 100644 --- a/.vim/ftplugin/python.vim +++ b/.vim/ftplugin/python.vim @@ -44,6 +44,9 @@ function! SavePython() endif if getline(1) =~ "^#!" !chmod +x % + if v:shell_error + echoerr 'Cannot make file executable: ' . v:shell_error + endif endif endif endfunction -- 2.39.2