From: Andrew Yourtchenko Date: Mon, 29 Jul 2019 09:27:10 +0000 (+0000) Subject: pg: clarify the text of error message X-Git-Tag: v20.01-rc0~56 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=e3cb1f94bad8bb778cebf90aa09ceb8ddbc4b61f;p=vpp.git 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 --- 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); }