summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2019-07-29 09:27:10 +0000
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2019-07-31 15:04:09 +0000
commite3cb1f94bad8bb778cebf90aa09ceb8ddbc4b61f (patch)
tree69d5c57a53c0feb203587c93bc3e8e419d4ac48b /src/vnet
parentbaba24e13642cd81f74b68c82b88eb7e57b6a676 (diff)
pg: clarify the text of error message
Enabling capture on pg with the file already existing results in a misleading error message. Fix the text. Change-Id: I1aea49cfeda3b4bfe6ed7b18fd543948a078508a Type: fix Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/pg/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/pg/cli.c b/src/vnet/pg/cli.c
index a8451d74e1e..d7e9ca04743 100644
--- a/src/vnet/pg/cli.c
+++ b/src/vnet/pg/cli.c
@@ -87,7 +87,7 @@ pg_capture (pg_capture_args_t * a)
{
struct stat sb;
if (stat ((char *) a->pcap_file_name, &sb) != -1)
- return clib_error_return (0, "pcap file '%s' does not exist.",
+ return clib_error_return (0, "pcap file '%s' already exists.",
a->pcap_file_name);
}