From 5a642e00686d0a9354480fea2aced3d1c4fc47a8 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Wed, 8 Apr 2009 13:51:09 +0200 Subject: adding an error in case of a missing file --- luaotfload.lua | 7 +++++-- 1 file 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 -- cgit v1.2.3