From f4b3884514804f7a59cecd87d84420358629fc69 Mon Sep 17 00:00:00 2001 From: Diego Nieto Cid Date: Mon, 19 Jul 2010 22:18:02 -0300 Subject: Give the file name and line number where an unexpected end of file was found. --- console-client/xkb/lex.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'console-client') diff --git a/console-client/xkb/lex.l b/console-client/xkb/lex.l index 6ef9134c..ffd14387 100644 --- a/console-client/xkb/lex.l +++ b/console-client/xkb/lex.l @@ -346,7 +346,7 @@ overlay2 { yylval.val = 2; return OVERLAY; } if ( --include_stack_ptr < 0 ) { // yyterminate (); - fprintf (stderr, "Unexpected end of file.\n"); + fprintf (stderr, "Unexpected end of file at %s:%d.\n", filename, lineno); exit (1); } else -- cgit v1.2.3