From a34749cc16700fad6a2bf1190982f58b72f22c7a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 19 Oct 2017 10:13:05 -0700 Subject: [PATCH] [merge] Print out duplicate glyphs in failure message --- Lib/fontTools/merge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontTools/merge.py b/Lib/fontTools/merge.py index fb4cda9e6..ba33d1511 100644 --- a/Lib/fontTools/merge.py +++ b/Lib/fontTools/merge.py @@ -572,7 +572,7 @@ def merge(self, m, tables): assert len(tables) == len(m.duplicateGlyphsPerFont) for i,(table,dups) in enumerate(zip(tables, m.duplicateGlyphsPerFont)): if not dups: continue - assert (table is not None and table is not NotImplemented), "Have duplicates to resolve for font %d but no GSUB" % (i + 1) + assert (table is not None and table is not NotImplemented), "Have duplicates to resolve for font %d but no GSUB: %s" % (i + 1, dups) synthFeature = None synthLookup = None for script in table.table.ScriptList.ScriptRecord: