From 9d76b642b7c989481499cf15d80fc8a29658810c Mon Sep 17 00:00:00 2001 From: Marius Date: Mon, 15 Apr 2013 23:40:37 +0300 Subject: beta 2013.04.15 22:30 --- scripts/context/lua/mtx-modules.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3