mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
vim.validate(): include stacktrace in message
This commit is contained in:
@@ -99,6 +99,9 @@ function module.matches(pat, actual)
|
||||
end
|
||||
error(string.format('Pattern does not match.\nPattern:\n%s\nActual:\n%s', pat, actual))
|
||||
end
|
||||
function module.contains(pat, actual)
|
||||
return module.matches(".*" .. pat .. ".*", actual)
|
||||
end
|
||||
|
||||
--- Asserts that `pat` matches one or more lines in the tail of $NVIM_LOG_FILE.
|
||||
---
|
||||
|
Reference in New Issue
Block a user