mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
fix(format): improve error message
This commit is contained in:
parent
569d5dfadb
commit
e9602f4119
1 changed files with 2 additions and 1 deletions
|
|
@ -7,7 +7,8 @@ local get_node_text = ts.get_node_text
|
||||||
local files
|
local files
|
||||||
|
|
||||||
if not _G.arg[1] then
|
if not _G.arg[1] then
|
||||||
error "Must specify specify file or directory to format!"
|
print "Must specify file or directory to format!"
|
||||||
|
return
|
||||||
elseif _G.arg[1]:match ".*%.scm$" then
|
elseif _G.arg[1]:match ".*%.scm$" then
|
||||||
files = { _G.arg[1] }
|
files = { _G.arg[1] }
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue