summaryrefslogtreecommitdiff
path: root/luaotfload.lua
diff options
context:
space:
mode:
Diffstat (limited to 'luaotfload.lua')
-rw-r--r--luaotfload.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/luaotfload.lua b/luaotfload.lua
index 360bb83..24e9530 100644
--- a/luaotfload.lua
+++ b/luaotfload.lua
@@ -13,8 +13,11 @@ luaotfload.module = {
luatextra.provides_module(luaotfload.module)
function luaotfload.loadmodule(name)
- local foundname = kpse.find_file('otfl-'..name,"tex") or ""
- if not foundname then return end
+ local foundname = kpse.find_file('otfl-'..name,"tex")
+ if not foundname then
+ luatextra.module_error('luaotfload', string.format('file otf-%s not found.', name))
+ return
+ end
dofile(foundname)
end