summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-06-09 23:14:05 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2014-06-09 23:14:05 +0200
commit1780d5eede861e35d05387278e90412ddac13d8f (patch)
tree1fca4488b3b5320dea407d081814346c73f42e6d
parenta7a45c7bdb89d3ca81ea5924cdf58d1b33ee45e8 (diff)
downloadluaotfload-1780d5eede861e35d05387278e90412ddac13d8f.tar.gz
[main] fix error message
-rw-r--r--src/luaotfload-main.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua
index 4baa225..36cbaf6 100644
--- a/src/luaotfload-main.lua
+++ b/src/luaotfload-main.lua
@@ -626,8 +626,10 @@ request_resolvers.name = function (specification)
end
local resolved, subfont = resolver (specification)
if resolved then
- report ("log", 0, "load", "Lookup/name: %q -> \"%s(%d)\"",
- specification.name, resolved, subfont)
+ report ("log", 0, "load", "Lookup/name: %q -> \"%s%s\"",
+ specification.name,
+ resolved,
+ subfont and stringformat ("(%d)", subfont) or "")
specification.resolved = resolved
specification.sub = subfont
specification.forced = stringlower (filesuffix (resolved) or "")