diff options
author | Elie Roux <elie.roux@telecom-bretagne.eu> | 2009-04-08 13:51:09 +0200 |
---|---|---|
committer | Elie Roux <elie.roux@telecom-bretagne.eu> | 2009-04-08 13:51:09 +0200 |
commit | 5a642e00686d0a9354480fea2aced3d1c4fc47a8 (patch) | |
tree | cc5d00f9f1bd7a8274651527a4557cba8f8f0284 /luaotfload.lua | |
parent | 23168bd4139fad7fa3b8b9d2a47f9d54942dedb3 (diff) | |
download | luaotfload-5a642e00686d0a9354480fea2aced3d1c4fc47a8.tar.gz |
adding an error in case of a missing file
Diffstat (limited to 'luaotfload.lua')
-rw-r--r-- | luaotfload.lua | 7 |
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 |