summaryrefslogtreecommitdiff
path: root/otfl-font-nms.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-10-01 19:10:58 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-10-01 19:16:56 +0200
commitd085e0bbd9bc778216f47a00f36d1ab5a313c159 (patch)
tree4e4b75b22588cf93c868b165f27506e93cb7f47a /otfl-font-nms.lua
parentd8753a1c461d18b51219d5fec7e39f2567b8c908 (diff)
downloadluaotfload-d085e0bbd9bc778216f47a00f36d1ab5a313c159.tar.gz
Should not error() here
Diffstat (limited to 'otfl-font-nms.lua')
-rw-r--r--otfl-font-nms.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index 6793830..dcd75d3 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -587,7 +587,10 @@ local function read_fonts_conf(path, results)
]]
local f = io.open(path)
if not f then
- error("Cannot open the file "..path)
+ if trace_search then
+ logs.report("cannot open file", "%s", path)
+ end
+ return results
end
local incomments = false
for line in f:lines() do
@@ -675,6 +678,7 @@ local function get_os_dirs()
end
end
end
+ return {}
end
local function scan_os_fonts(fontnames, newfontnames)