diff options
author | Swarup Nayak <swarupnpvt@gmail.com> | 2017-12-04 11:54:43 +0530 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-12-10 00:20:16 +0000 |
commit | 82d8ec2571720310f0a7c41deeba30534be28ed0 (patch) | |
tree | cb0c8ed539332fc48a8f72ce26a471f85ce2d799 /src/vnet/session | |
parent | 9128637ee8f7b0d903551f165a1447d427e8dd19 (diff) |
VPP-1077 Add meaningful error info, when executing command with enable/disable option
Change-Id: I47dd6f9637f0214971e3191852d84aa92d64b8c0
Signed-off-by: Swarup Nayak <swarupnpvt@gmail.com>
Diffstat (limited to 'src/vnet/session')
-rwxr-xr-x | src/vnet/session/session_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/session/session_cli.c b/src/vnet/session/session_cli.c index 48c431cafa1..3423026147c 100755 --- a/src/vnet/session/session_cli.c +++ b/src/vnet/session/session_cli.c @@ -484,7 +484,7 @@ session_enable_disable_fn (vlib_main_t * vm, unformat_input_t * input, clib_error_t *error; if (!unformat_user (input, unformat_line_input, line_input)) - return 0; + return clib_error_return (0, "expected enable | disable"); while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT) { |