From b4718fd233a00a950cef1965d13afccd6c6c0e77 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 24 Nov 2017 11:28:35 +0100 Subject: Improve get_rate_ctr() error handling Report back expected interval values. Change-Id: I05ca7f716342af4f7424b28216ed6c1bf2bd589f Related: OS#2550 --- src/ctrl/control_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ctrl') diff --git a/src/ctrl/control_if.c b/src/ctrl/control_if.c index 590f74d0..38e7aef4 100644 --- a/src/ctrl/control_if.c +++ b/src/ctrl/control_if.c @@ -597,7 +597,7 @@ static int get_rate_ctr(struct ctrl_cmd *cmd, void *data) return CTRL_CMD_REPLY; } else { talloc_free(dup); - cmd->reply = "Wrong interval."; + cmd->reply = "Wrong interval. Expecting 'per_sec', 'per_min', 'per_hour', 'per_day' or 'abs' value."; goto err; } -- cgit v1.2.3