Fix use of throw
This commit is contained in:
parent
d5f8446158
commit
1e6d7c8a40
@ -1541,7 +1541,7 @@ function! s:instaweb_url(repo,rev,commit,path,type,...) abort
|
|||||||
try
|
try
|
||||||
let url .= ';h=' . a:repo.rev_parse((a:commit == '' ? 'HEAD' : ':' . a:commit) . ':' . a:path)
|
let url .= ';h=' . a:repo.rev_parse((a:commit == '' ? 'HEAD' : ':' . a:commit) . ':' . a:path)
|
||||||
catch /^fugitive:/
|
catch /^fugitive:/
|
||||||
throw 'fugitive: cannot browse uncommitted file'
|
call s:throw('fugitive: cannot browse uncommitted file')
|
||||||
endtry
|
endtry
|
||||||
endif
|
endif
|
||||||
let root .= ';hb=' . matchstr(a:repo.head_ref(),'[^ ]\+$')
|
let root .= ';hb=' . matchstr(a:repo.head_ref(),'[^ ]\+$')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user