diff options
author | James McCoy <jamessan@jamessan.com> | 2019-12-13 06:52:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-13 06:52:48 -0500 |
commit | 9f3d483c79f03c48239fdc82cc02e8685a03d22a (patch) | |
tree | 7dba4a0c2253fe814ad28ee7a258c3aa0731b479 /test/functional/helpers.lua | |
parent | bc879dd1f163b8eac3955baee5ed5792d906e98c (diff) | |
parent | 91b313a904c039a9b6a53a7afc9f66e67a1e12fc (diff) | |
download | rneovim-9f3d483c79f03c48239fdc82cc02e8685a03d22a.tar.gz rneovim-9f3d483c79f03c48239fdc82cc02e8685a03d22a.tar.bz2 rneovim-9f3d483c79f03c48239fdc82cc02e8685a03d22a.zip |
Merge pull request #7202 from teto/jobstart_env
[RFC] override environment for jobstart
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 97248973da..eead1ea3e0 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -186,7 +186,12 @@ function module.expect_msg_seq(...) if status then return result end - final_error = cat_err(final_error, result) + local message = result + if type(result) == "table" then + -- 'eq' returns several things + message = result.message + end + final_error = cat_err(final_error, message) end error(final_error) end |