]> git.phdru.name Git - dotfiles.git/blobdiff - .vim/ftplugin/python.vim
Feat(.vim/ftplugin/python.vim): report if there was an error calling chmod
[dotfiles.git] / .vim / ftplugin / python.vim
index 75f2e51334b8c4a7b4f75282a625ce67f3ad6cc3..2aa92b056598bd9d44867b268ee8e7cd3cf762e0 100644 (file)
@@ -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