From afc76092a50071048419dbe8d882c81eb17cb079 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Wed, 30 Nov 2022 09:52:05 +0000 Subject: [PATCH] Give more information on invalid properties --- client/client_props.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/client_props.c b/client/client_props.c index 5619b20b..5f93a404 100644 --- a/client/client_props.c +++ b/client/client_props.c @@ -79,13 +79,13 @@ int cfg_parse_property(struct mosq_config *cfg, int argc, char *argv[], int *idx cmdname = argv[*idx]; if(mosquitto_string_to_command(cmdname, &cmd)){ - fprintf(stderr, "Error: Invalid command given in --property argument.\n\n"); + fprintf(stderr, "Error: Invalid command %s given in --property argument.\n\n", cmdname); return MOSQ_ERR_INVAL; } propname = argv[(*idx)+1]; if(mosquitto_string_to_property_info(propname, &identifier, &type)){ - fprintf(stderr, "Error: Invalid property name given in --property argument.\n\n"); + fprintf(stderr, "Error: Invalid property name %s given in --property argument.\n\n", propname); return MOSQ_ERR_INVAL; } @@ -218,4 +218,3 @@ int cfg_parse_property(struct mosq_config *cfg, int argc, char *argv[], int *idx } return MOSQ_ERR_SUCCESS; } -