diff --git a/lexer.c b/lexer.c index 5177471..7642d26 100644 --- a/lexer.c +++ b/lexer.c @@ -1519,6 +1519,6 @@ int lex_do(lex_file *lex) return (lex->tok.ttype = ch); } - lexerror(lex, "unknown token: `%s`", lex->tok.value); + lexerror(lex, "unknown token: `%c`", ch); return (lex->tok.ttype = TOKEN_ERROR); }