diff --git a/Lib/fontTools/feaLib/lexer.py b/Lib/fontTools/feaLib/lexer.py index 6ca7a521d..2e5f38486 100644 --- a/Lib/fontTools/feaLib/lexer.py +++ b/Lib/fontTools/feaLib/lexer.py @@ -155,7 +155,7 @@ class Lexer(object): else: raise FeatureLibError("Expected '\"' to terminate string", location) - raise FeatureLibError("Unexpected character: '%s'" % cur_char, + raise FeatureLibError("Unexpected character: %r" % cur_char, location) def scan_over_(self, valid):