mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test: always pass a string to expect_msg_seq
Seems like pcall doesn't always return a string as a 2nd element of the tuple.
This commit is contained in:
parent
b1e4ec1c2a
commit
4598e489c7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user