]> git.phdru.name Git - dotfiles.git/commitdiff
.vim/plugin/tmpwatch.vim: echo -> echoerr
authorOleg Broytman <phd@phdru.name>
Thu, 16 May 2019 23:50:30 +0000 (02:50 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 16 May 2019 23:50:30 +0000 (02:50 +0300)
.vim/plugin/tmpwatch.vim

index cdd1be0ed5fcf09932a61daa7bf1c4fb03654414..0db1dddeeb9351796c47417b5e847516fac83652 100644 (file)
@@ -5,11 +5,11 @@ function Tmpwatch(path, days)
     if isdirectory(l:path)
         for file in split(globpath(l:path, "*"), "\n")
             if localtime() > getftime(file) + 86400 * a:days && delete(file) != 0
-                echo "Tmpwatch(): Error deleting '" . file . "'"
+                echoerr "Tmpwatch(): Error deleting '" . file . "'"
             endif
         endfor
     else
-        echo "Tmpwatch(): Directory '" . l:path . "' not found"
+        echoerr "Tmpwatch(): Directory '" . l:path . "' not found"
     endif
 endfunction