diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/lua/mtx-scite.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/context/lua/mtx-scite.lua b/scripts/context/lua/mtx-scite.lua index 96020de3d..b5360770e 100644 --- a/scripts/context/lua/mtx-scite.lua +++ b/scripts/context/lua/mtx-scite.lua @@ -251,11 +251,11 @@ function scripts.scite.tree() local source = environment.argument("source") local target = environment.argument("target") local numbers = environment.argument("numbers") - if not lfs.isdir(source) then + if not source or not lfs.isdir(source) then report("you need to pass a valid source path with --source") return end - if not lfs.isdir(target) then + if not target or not lfs.isdir(target) then report("you need to pass a valid target path with --target") return end |