mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 18:06:30 +00:00
vim-patch:8.1.1346: error for Python exception does not show useful info
Problem: Error for Python exception does not show useful info.
Solution: Show the last line instead of the first one. (Ben Jackson,
closes vim/vim#4381)
7f3a28490a
This commit is contained in:
@@ -164,3 +164,11 @@ func Test_Write_To_Current_Buffer_Fixes_Cursor_Str()
|
||||
|
||||
bwipe!
|
||||
endfunction
|
||||
|
||||
func Test_Catch_Exception_Message()
|
||||
try
|
||||
py3 raise RuntimeError( 'TEST' )
|
||||
catch /.*/
|
||||
call assert_match('^Vim(.*):.*RuntimeError: TEST$', v:exception )
|
||||
endtry
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user