emoji_dump: Add warning for fallback to black/white.

I don't think the black/white fallback code is actually used by
default, and thus when it is used, it's usually a sign that something
is broken.  We should throw an error, but at the very least it makes
sense to print a warning.
This commit is contained in:
Tim Abbott 2016-09-08 14:56:03 -07:00
parent aca6636729
commit abf85e7fbd
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ def main():
try: try:
color_font(code_point, code_point_to_fname_map) color_font(code_point, code_point_to_fname_map)
except MissingGlyphError: except MissingGlyphError:
print("Warning: Missing color glyph for %s; using black/white." % (name,))
try: try:
bw_font(name, code_point) bw_font(name, code_point)
except Exception as e: except Exception as e: