comparison autoload/lawrencium/log.vim @ 141:4d5f4233b04e

Only set `v:errmsg` for real errors, not exceptions.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 07 Dec 2016 21:33:18 -0800
parents 652a6f5df0f3
children 4aedee2ce476
comparison
equal deleted inserted replaced
140:652a6f5df0f3 141:4d5f4233b04e
165 let l:line = getline('.') 165 let l:line = getline('.')
166 endif 166 endif
167 " Behold, Vim's look-ahead regex syntax again! WTF. 167 " Behold, Vim's look-ahead regex syntax again! WTF.
168 let l:rev = matchstr(l:line, '\v^(\d+)(\:)@=') 168 let l:rev = matchstr(l:line, '\v^(\d+)(\:)@=')
169 if l:rev == '' 169 if l:rev == ''
170 call lawrencium#throw("Can't parse revision number from line: " . l:line) 170 call lawrencium#throwerr("Can't parse revision number from line: " . l:line)
171 endif 171 endif
172 return l:rev 172 return l:rev
173 endfunction 173 endfunction
174 174
175 function! s:HgLog_ExportPatch(...) abort 175 function! s:HgLog_ExportPatch(...) abort