aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/msgpack_functions_spec.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-01-04 17:20:16 +0300
committerZyX <kp-pav@yandex.ru>2016-01-04 17:20:16 +0300
commitd26b01d4bd42c7cf6fc455406b3cfd696465f652 (patch)
tree7546b75d9d8007d4c2352118636b77b9300767d7 /test/functional/eval/msgpack_functions_spec.lua
parent59eaba28948137acbd89f31dce1558d97228b9cd (diff)
downloadrneovim-d26b01d4bd42c7cf6fc455406b3cfd696465f652.tar.gz
rneovim-d26b01d4bd42c7cf6fc455406b3cfd696465f652.tar.bz2
rneovim-d26b01d4bd42c7cf6fc455406b3cfd696465f652.zip
eval: Use better error messages when failing to dump values
Examples: let g:SR = [[]] call add(g:SR[0], g:SR) wshada " E952: Unable to dump variable g:SR: container references itself in index 0, index 0 let g:F = {'_TYPE': v:msgpack_types.map, '_VAL': [[{'abc': 1}, function("tr")]]} wshada " E951: Error while dumping variable g:F, key {'abc': 1} at index 0 from special map, key '': attempt to dump function reference " (no msgpack#string available) " E951: Error while dumping variable g:F, key {="abc": 1} at index 0 from special map, key '': attempt to dump function reference " (msgpack#string available) let g:F = {'_TYPE': v:msgpack_types.map, '_VAL': [[g:SR, function("tr")]]} wshada " E951: Error while dumping variable g:F, key [[[[{E724@0}]]]] at index 0 from special map, index 1: attempt to dump function reference call msgpackdump([g:SR]) " E952: Unable to dump msgpackdump() argument, index 0: container references itself in index 0, index 0 Not tested yet.
Diffstat (limited to 'test/functional/eval/msgpack_functions_spec.lua')
0 files changed, 0 insertions, 0 deletions