From b7d3c47c13d48acc8ef5a47784cc0e88ed463703 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Mon, 27 May 2024 21:58:30 +0200 Subject: [PATCH] feat: add minimum tree-sitter cli requirement to error output --- src/luarocks/build/treesitter-parser.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luarocks/build/treesitter-parser.lua b/src/luarocks/build/treesitter-parser.lua index d30616b..7d91a6f 100644 --- a/src/luarocks/build/treesitter-parser.lua +++ b/src/luarocks/build/treesitter-parser.lua @@ -147,7 +147,7 @@ function treesitter_parser.run(rockspec, no_install) -- Fall back to builtin build ok, err = builtin.run(rockspec, no_install) elseif not ok then - err = "tree-sitter build failed" + err = "'tree-sitter build' failed. Note: tree-sitter 0.22.2 or later is required to build this parser." end else ok = true