diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2011-10-01 19:10:58 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2011-10-01 19:16:56 +0200 |
commit | d085e0bbd9bc778216f47a00f36d1ab5a313c159 (patch) | |
tree | 4e4b75b22588cf93c868b165f27506e93cb7f47a | |
parent | d8753a1c461d18b51219d5fec7e39f2567b8c908 (diff) | |
download | luaotfload-d085e0bbd9bc778216f47a00f36d1ab5a313c159.tar.gz |
Should not error() here
-rw-r--r-- | otfl-font-nms.lua | 6 |
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) |