aboutsummaryrefslogtreecommitdiff
path: root/test/functional/shada/errors_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-01-08 09:29:37 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-01-08 09:29:37 -0500
commit3b23d733ddac1b42faea10e68864153d9e356da0 (patch)
treee29ad59c0e9288d60e8926c61b27e7fe6a5d51b1 /test/functional/shada/errors_spec.lua
parentaf5c34f8a50d547861614a4121d308d3e2a650da (diff)
parentc6f6033482015723742f97aeba95d0e65f694943 (diff)
downloadrneovim-3b23d733ddac1b42faea10e68864153d9e356da0.tar.gz
rneovim-3b23d733ddac1b42faea10e68864153d9e356da0.tar.bz2
rneovim-3b23d733ddac1b42faea10e68864153d9e356da0.zip
Merge pull request #3943 from ZyX-I/better-fref-error
eval: Use better error messages when failing to dump values
Diffstat (limited to 'test/functional/shada/errors_spec.lua')
-rw-r--r--test/functional/shada/errors_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/shada/errors_spec.lua b/test/functional/shada/errors_spec.lua
index f6265bf24b..e7951ee74c 100644
--- a/test/functional/shada/errors_spec.lua
+++ b/test/functional/shada/errors_spec.lua
@@ -497,7 +497,7 @@ $
it('errors when a funcref is stored in a variable', function()
nvim_command('let F = function("tr")')
nvim_command('set shada+=!')
- eq('\nE475: Invalid argument: attempt to dump function reference'
+ eq('\nE951: Error while dumping variable g:F, itself: attempt to dump function reference'
.. '\nE574: Failed to write variable F',
redir_exec('wshada'))
end)
@@ -506,7 +506,7 @@ $
nvim_command('let L = []')
nvim_command('call add(L, L)')
nvim_command('set shada+=!')
- eq('\nE475: Invalid argument: container references itself'
+ eq('\nE952: Unable to dump variable g:L: container references itself in index 0'
.. '\nE574: Failed to write variable L',
redir_exec('wshada'))
end)