mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
ci: improve CI output on query error
This commit is contained in:
parent
fa09c1f3ef
commit
41e013dd9a
1 changed files with 3 additions and 2 deletions
|
|
@ -65,8 +65,9 @@ local function do_check()
|
||||||
table.insert(timings, { duration = duration, lang = lang, query_type = query_type })
|
table.insert(timings, { duration = duration, lang = lang, query_type = query_type })
|
||||||
io_print("Checking " .. lang .. " " .. query_type .. string.format(" (%.02fms)", duration * 1e-6))
|
io_print("Checking " .. lang .. " " .. query_type .. string.format(" (%.02fms)", duration * 1e-6))
|
||||||
if not ok then
|
if not ok then
|
||||||
vim.api.nvim_err_writeln(query)
|
local err_msg = lang .. " (" .. query_type .. "): " .. query
|
||||||
last_error = query
|
io_print(err_msg)
|
||||||
|
last_error = err_msg
|
||||||
else
|
else
|
||||||
if query then
|
if query then
|
||||||
for _, capture in ipairs(query.captures) do
|
for _, capture in ipairs(query.captures) do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue