diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-09-01 15:51:02 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-01 22:49:33 -0700 |
commit | 78ec7981c8e931fe72998b0cbe144304d6506803 (patch) | |
tree | f2a8fc75f4724a62c8990d63b9a6261a4fb70a72 /test/functional/helpers.lua | |
parent | c062149d5bee8ae12d1bb3280e8ad01b1c6e9461 (diff) | |
download | rneovim-78ec7981c8e931fe72998b0cbe144304d6506803.tar.gz rneovim-78ec7981c8e931fe72998b0cbe144304d6506803.tar.bz2 rneovim-78ec7981c8e931fe72998b0cbe144304d6506803.zip |
screen.lua: dump payload on handler failure
For debugging failures like:
test/functional/helpers.lua:240: test/functional/ui/screen.lua:898:
bad argument #1 to 'unpack' (table expected, got number)
test/functional/helpers.lua:240: test/functional/ui/screen.lua:708:
attempt to index local 'item' (a number value)
ref #10804
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 73f3c4c917..c718a37021 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -304,7 +304,7 @@ local function nvim_feed(input) local written = module.request('nvim_input', input) if written == nil then module.assert_alive() - error('nvim_input returned nil (Nvim process terminated?)') + error('crash? (nvim_input returned nil)') end input = input:sub(written + 1) end @@ -592,7 +592,7 @@ end -- Checks that the Nvim session did not terminate. function module.assert_alive() - eq(2, module.eval('1+1')) + assert(2 == module.eval('1+1'), 'crash? request failed') end local function do_rmdir(path) |