diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-02-03 20:48:50 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-02-03 20:48:50 +0000 |
commit | 4b5d5100560654994d33823a16bd35e657e1260a (patch) | |
tree | 52b88bd692e55c052bb1a530e66fc7b4af1f7177 /capture.c | |
parent | 53c2c2342f279e545fbe5bc1f1fe1c37cb29b3f2 (diff) | |
download | wireshark-4b5d5100560654994d33823a16bd35e657e1260a.tar.gz |
Tweak the error messages for bad capture filters.
svn path=/trunk/; revision=9974
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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)); } |