eval: Do not use msgpack#string for error messages

This commit is contained in:
ZyX
2016-01-06 22:47:39 +03:00
parent bd4ca22cf0
commit c6f6033482
4 changed files with 3 additions and 54 deletions

View File

@@ -601,7 +601,7 @@ describe('msgpackdump() function', function()
it('fails to dump a recursive (key) map in a special dict, _VAL reference', function()
execute('let todump = {"_TYPE": v:msgpack_types.map, "_VAL": [[[], []]]}')
execute('call add(todump._VAL[0][0], todump._VAL)')
eq('Vim(call):E952: Unable to dump msgpackdump() argument, index 0: container references itself in key [[[{E724@0}, []]]] at index 0 from special map, index 0',
eq('Vim(call):E952: Unable to dump msgpackdump() argument, index 0: container references itself in key [[[[...@0], []]]] at index 0 from special map, index 0',
exc_exec('call msgpackdump([todump])'))
end)