summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2012-11-24 11:06:09 +0000
committerMarc Espie <espie@cvs.openbsd.org>2012-11-24 11:06:09 +0000
commitb494fe5bc50d178450a8be20b21bde40386e8b83 (patch)
tree2db850fdcd0a244831cbb84d92b0fda7f47393fe /usr.bin/make
parentf7367c291c48ee579e75425bb85b41ef5472c03f (diff)
complement "need an operator" fatal error message with the actual line content.
okay beck@
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/parse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c
index 478a63b4d79..10fa726477b 100644
--- a/usr.bin/make/parse.c
+++ b/usr.bin/make/parse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.c,v 1.108 2012/11/07 14:18:41 espie Exp $ */
+/* $OpenBSD: parse.c,v 1.109 2012/11/24 11:06:08 espie Exp $ */
/* $NetBSD: parse.c,v 1.29 1997/03/10 21:20:04 christos Exp $ */
/*
@@ -641,7 +641,8 @@ parse_do_targets(Lst paths, unsigned int *op, const char *line)
Parse_Error(PARSE_FATAL,
"Need an operator (likely from a cvs update conflict)");
} else {
- Parse_Error(PARSE_FATAL, "Need an operator");
+ Parse_Error(PARSE_FATAL,
+ "Need an operator in '%s'", line);
}
return NULL;
}