diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-13 20:26:29 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-13 20:26:29 +0100 |
commit | 8143a53c533bc7776c57e5db063d185bdd5750f3 (patch) | |
tree | c23aa28ab84809e57264cf8c98e3cce8197f8a78 /src/testdir/test_vimscript.vim | |
parent | 2a3cd3af455973d678f70303ebdd486f3478bc0d (diff) |
patch 8.2.2141: a user command with try/catch may not catch an expression errorv8.2.2141
Problem: A user command with try/catch may not catch an expression error.
Solution: When an expression fails check for following "|". (closes #7469)
Diffstat (limited to 'src/testdir/test_vimscript.vim')
-rw-r--r-- | src/testdir/test_vimscript.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_vimscript.vim b/src/testdir/test_vimscript.vim index 8c93199244..e50e4d5fa3 100644 --- a/src/testdir/test_vimscript.vim +++ b/src/testdir/test_vimscript.vim @@ -6825,7 +6825,7 @@ func Test_script_lines() \ ]) call assert_report("Shouldn't be able to define function") catch - call assert_exception('Vim(function):E126: Missing :endfunction') + call assert_exception('Vim(function):E1145: Missing heredoc end marker: .') endtry " :change @@ -6845,7 +6845,7 @@ func Test_script_lines() \ ]) call assert_report("Shouldn't be able to define function") catch - call assert_exception('Vim(function):E126: Missing :endfunction') + call assert_exception('Vim(function):E1145: Missing heredoc end marker: .') endtry " :insert @@ -6865,7 +6865,7 @@ func Test_script_lines() \ ]) call assert_report("Shouldn't be able to define function") catch - call assert_exception('Vim(function):E126: Missing :endfunction') + call assert_exception('Vim(function):E1145: Missing heredoc end marker: .') endtry endfunc |