From dd4b646bff67bc30dfa1181f08b7247d38aa1123 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Tue, 28 Jun 2016 15:55:35 -0400 Subject: [PATCH] Fix: clear error message Signed-off-by: Jonathan Rajotte --- src/bin/lttng/commands/create.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index e31bbf1c3..e787ed555 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -228,6 +228,7 @@ error_create: static int validate_command_options(void) { int ret = CMD_SUCCESS; + if (opt_snapshot && opt_live_timer) { ERR("Snapshot and live modes are mutually exclusive."); ret = CMD_ERROR; @@ -235,7 +236,7 @@ static int validate_command_options(void) } if ((!opt_ctrl_url && opt_data_url) || (opt_ctrl_url && !opt_data_url)) { - ERR("You need both control and data URL."); + ERR("Control and data URLs must both be set."); ret = CMD_ERROR; goto error; } -- 2.34.1