.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 cdd1be0..0db1ddd 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