From e9602f41192ba51842b4be4d02c718a64cd57acf Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Tue, 30 Jan 2024 09:57:54 +0100 Subject: fix(format): improve error message --- scripts/format-queries.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/format-queries.lua') diff --git a/scripts/format-queries.lua b/scripts/format-queries.lua index 67b850976..b7c230096 100755 --- a/scripts/format-queries.lua +++ b/scripts/format-queries.lua @@ -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 -- cgit v1.2.3-70-g09d2