Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
baba24e
)
pg: clarify the text of error message
95/20895/5
author
Andrew Yourtchenko
<ayourtch@gmail.com>
Mon, 29 Jul 2019 09:27:10 +0000
(09:27 +0000)
committer
Paul Vinciguerra
<pvinci@vinciconsulting.com>
Wed, 31 Jul 2019 15:04:09 +0000
(15:04 +0000)
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>
src/vnet/pg/cli.c
patch
|
blob
|
history
diff --git
a/src/vnet/pg/cli.c
b/src/vnet/pg/cli.c
index
a8451d7
..
d7e9ca0
100644
(file)
--- 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);
}