diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2024-01-30 09:57:54 +0100 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-01-30 09:57:54 +0100 |
| commit | e9602f41192ba51842b4be4d02c718a64cd57acf (patch) | |
| tree | 0649a1cf54b179f2be0d6adee0f2785353e3d414 /scripts/format-queries.lua | |
| parent | ci: use nvim-treesitter-bot as author (diff) | |
| download | nvim-treesitter-e9602f41192ba51842b4be4d02c718a64cd57acf.tar nvim-treesitter-e9602f41192ba51842b4be4d02c718a64cd57acf.tar.gz nvim-treesitter-e9602f41192ba51842b4be4d02c718a64cd57acf.tar.bz2 nvim-treesitter-e9602f41192ba51842b4be4d02c718a64cd57acf.tar.lz nvim-treesitter-e9602f41192ba51842b4be4d02c718a64cd57acf.tar.xz nvim-treesitter-e9602f41192ba51842b4be4d02c718a64cd57acf.tar.zst nvim-treesitter-e9602f41192ba51842b4be4d02c718a64cd57acf.zip | |
fix(format): improve error message
Diffstat (limited to 'scripts/format-queries.lua')
| -rwxr-xr-x | scripts/format-queries.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
