fix(format): improve error message

This commit is contained in:
Christian Clason 2024-01-30 09:57:54 +01:00
parent 569d5dfadb
commit e9602f4119

View file

@ -7,7 +7,8 @@ local get_node_text = ts.get_node_text
local files
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
files = { _G.arg[1] }
else