aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-02-03 20:48:50 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-02-03 20:48:50 +0000
commit1a0918da92ad21d9752297683bea86d52c988a41 (patch)
tree52b88bd692e55c052bb1a530e66fc7b4af1f7177 /capture.c
parent5882f8a86a1ce6ddaaa8ac4bbf282f93dfe4dd1c (diff)
Tweak the error messages for bad capture filters.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9974 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture.c')
-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));
}