summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-04-15 23:40:37 +0300
committerMarius <mariausol@gmail.com>2013-04-15 23:40:37 +0300
commit9d76b642b7c989481499cf15d80fc8a29658810c (patch)
tree3dc2f1e260756a4b7c5677ad26c4ff108a22eaf5 /scripts
parentf5cd53ecfd95311913998d41f32f2258802eeb07 (diff)
downloadcontext-9d76b642b7c989481499cf15d80fc8a29658810c.tar.gz
beta 2013.04.15 22:30
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-modules.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/context/lua/mtx-modules.lua b/scripts/context/lua/mtx-modules.lua
index ef38a7156..f4003c1db 100644
--- a/scripts/context/lua/mtx-modules.lua
+++ b/scripts/context/lua/mtx-modules.lua
@@ -69,7 +69,7 @@ local find, format, sub, is_empty, strip, gsub = string.find, string.format, str
local function source_to_ted(inpname,outname,filetype)
local data = io.loaddata(inpname)
- if data == "" then
+ if not data or data == "" then
report("invalid module name '%s'",inpname)
return
end