From: Oleg Broytman Date: Thu, 16 May 2019 23:50:30 +0000 (+0300) Subject: .vim/plugin/tmpwatch.vim: echo -> echoerr X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=7815b8b7ca790bb55b7e5306da2fc45528e1d8c8;p=dotfiles.git .vim/plugin/tmpwatch.vim: echo -> echoerr --- diff --git a/.vim/plugin/tmpwatch.vim b/.vim/plugin/tmpwatch.vim index cdd1be0..0db1ddd 100644 --- a/.vim/plugin/tmpwatch.vim +++ b/.vim/plugin/tmpwatch.vim @@ -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