error message improvement



in think it got lost in the middle of another conversation, but i think this trivial change is a good one:

2004-11-22 Elliott Hughes <enh@xxxxxxxxxxx>

* src/grep.c: Say exactly *which* matchers conflicted.

Index: src/grep.c
===================================================================
RCS file: /cvsroot/grep/grep/src/grep.c,v
retrieving revision 1.85
diff -u -r1.85 grep.c
--- src/grep.c 22 Nov 2004 09:53:26 -0000 1.85
+++ src/grep.c 24 Nov 2004 05:05:31 -0000
@@ -1166,7 +1166,7 @@
setmatcher (char const *m)
{
if (matcher && strcmp (matcher, m) != 0)
- error (2, 0, _("conflicting matchers specified"));
+ error (2, 0, _("conflicting matchers specified: %s and %s"), matcher, m);
matcher = m;
}

Attachment: 20041123-elliotth-grep-patch.txt
Description: Text document



--
http://www.jessies.org/~enh/...



Privacy