]> git.phdru.name Git - dotfiles.git/commitdiff
Feat(.vim/ftplugin/python.vim): report if there was an error calling chmod
authorOleg Broytman <phd@phdru.name>
Tue, 4 Jul 2017 20:47:49 +0000 (23:47 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 4 Jul 2017 20:47:49 +0000 (23:47 +0300)
.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