summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/yacc/error.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/yacc/error.c b/usr.bin/yacc/error.c
index d76548ab309..a42bbd79005 100644
--- a/usr.bin/yacc/error.c
+++ b/usr.bin/yacc/error.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: error.c,v 1.11 2009/10/27 23:59:50 deraadt Exp $ */
+/* $OpenBSD: error.c,v 1.12 2011/09/22 16:21:23 nicm Exp $ */
/* $NetBSD: error.c,v 1.4 1996/03/19 03:21:32 jtc Exp $ */
/*
@@ -57,7 +57,8 @@ no_space(void)
void
open_error(char *filename)
{
- fprintf(stderr, "%s: cannot open source file\n", input_file_name);
+ fprintf(stderr, "%s: cannot open source file %s\n",
+ input_file_name, filename);
done(2);
}