From: Oleg Broytman Date: Tue, 4 Jul 2017 20:47:49 +0000 (+0300) Subject: Feat(.vim/ftplugin/python.vim): report if there was an error calling chmod X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=bf2d1f18e7896f68c1455b74a96e5649bc28889e;p=dotfiles.git Feat(.vim/ftplugin/python.vim): report if there was an error calling chmod --- 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