aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-02-03 20:48:50 +0000
committerGuy Harris <guy@alum.mit.edu>2004-02-03 20:48:50 +0000
commit4b5d5100560654994d33823a16bd35e657e1260a (patch)
tree52b88bd692e55c052bb1a530e66fc7b4af1f7177
parent53c2c2342f279e545fbe5bc1f1fe1c37cb29b3f2 (diff)
Tweak the error messages for bad capture filters.
svn path=/trunk/; revision=9974
-rw-r--r--capture.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/capture.c b/capture.c
index 506d415e3f..a8bc5b2ef0 100644
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
/* capture.c
* Routines for packet capture windows
*
- * $Id: capture.c,v 1.235 2004/02/03 19:54:08 ulfl Exp $
+ * $Id: capture.c,v 1.236 2004/02/03 20:48:50 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1538,12 +1538,13 @@ capture(gboolean *stats_known, struct pcap_stat *stats)
snprintf(errmsg, sizeof errmsg,
"%sInvalid capture filter: \"%s\"!%s\n"
"\n"
- "That string looks like a valid display filter (%s).\n"
+ "That string looks like a valid display filter; however, it is not a valid\n"
+ "capture filter (%s).\n"
"\n"
"Note that display filters and capture filters don't have the same syntax,\n"
"so you can't use most display filter expressions as capture filters.\n"
"\n"
- "See help for correct capture filter syntax.",
+ "See the help for a description of the capture filter syntax.",
simple_dialog_primary_start(), cfile.cfilter, simple_dialog_primary_end(),
pcap_geterr(pch));
dfilter_free(rfcode);
@@ -1551,8 +1552,8 @@ capture(gboolean *stats_known, struct pcap_stat *stats)
snprintf(errmsg, sizeof errmsg,
"%sInvalid capture filter: \"%s\"!%s\n"
"\n"
- "Unable to parse capture filter string (%s),\n"
- "see help for correct capture filter syntax.",
+ "That string is not a valid capture filter (%s).\n"
+ "See the help for a description of the capture filter syntax.",
simple_dialog_primary_start(), cfile.cfilter, simple_dialog_primary_end(),
pcap_geterr(pch));
}