mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 04:23:51 -05:00
Fixed error output
* `:throw` can not throws "Vim" exception.
This commit is contained in:
@@ -9,7 +9,8 @@ func! TestFiletype(filetype)
|
|||||||
exec ":bw!"
|
exec ":bw!"
|
||||||
catch
|
catch
|
||||||
echo 'Failed to load ' . a:filetype . ' filetype...'
|
echo 'Failed to load ' . a:filetype . ' filetype...'
|
||||||
throw v:exception
|
echo v:throwpoint
|
||||||
|
echo v:exception
|
||||||
cq!
|
cq!
|
||||||
endtry
|
endtry
|
||||||
endfunc
|
endfunc
|
||||||
|
|||||||
Reference in New Issue
Block a user