diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2014-06-09 23:14:05 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2014-06-09 23:14:05 +0200 |
commit | 1780d5eede861e35d05387278e90412ddac13d8f (patch) | |
tree | 1fca4488b3b5320dea407d081814346c73f42e6d | |
parent | a7a45c7bdb89d3ca81ea5924cdf58d1b33ee45e8 (diff) | |
download | luaotfload-1780d5eede861e35d05387278e90412ddac13d8f.tar.gz |
[main] fix error message
-rw-r--r-- | src/luaotfload-main.lua | 6 |
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 "") |