From 1780d5eede861e35d05387278e90412ddac13d8f Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 9 Jun 2014 23:14:05 +0200 Subject: [main] fix error message --- src/luaotfload-main.lua | 6 ++++-- 1 file 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 "") -- cgit v1.2.3