From: Jeff Lucovsky Date: Thu, 6 Aug 2020 12:34:45 +0000 (-0400) Subject: general: Improve grammar in error messages X-Git-Tag: suricata-6.0.0-rc1~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9efb93669711ffdf141b960420c943c796d78650;p=thirdparty%2Fsuricata.git general: Improve grammar in error messages This commit corrects a minor grammar issue in address/port error messages. --- diff --git a/src/detect-engine-address.c b/src/detect-engine-address.c index f8e3004f01..d422ea60a3 100644 --- a/src/detect-engine-address.c +++ b/src/detect-engine-address.c @@ -1264,17 +1264,19 @@ int DetectAddressTestConfVars(void) if (r < 0) { SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY, - "failed to parse address var \"%s\" with value \"%s\". " - "Please check it's syntax", seq_node->name, seq_node->val); + "failed to parse address var \"%s\" with value \"%s\". " + "Please check its syntax", + seq_node->name, seq_node->val); goto error; } if (DetectAddressIsCompleteIPSpace(ghn)) { SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY, - "address var - \"%s\" has the complete IP space negated " - "with it's value \"%s\". Rule address range is NIL. " - "Probably have a !any or an address range that supplies " - "a NULL address range", seq_node->name, seq_node->val); + "address var - \"%s\" has the complete IP space negated " + "with its value \"%s\". Rule address range is NIL. " + "Probably have a !any or an address range that supplies " + "a NULL address range", + seq_node->name, seq_node->val); goto error; } diff --git a/src/detect-engine-port.c b/src/detect-engine-port.c index 88fb5b23cd..43a68f3256 100644 --- a/src/detect-engine-port.c +++ b/src/detect-engine-port.c @@ -1200,17 +1200,19 @@ int DetectPortTestConfVars(void) if (r < 0) { DetectPortCleanupList(NULL, gh); SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY, - "failed to parse port var \"%s\" with value \"%s\". " - "Please check it's syntax", seq_node->name, seq_node->val); + "failed to parse port var \"%s\" with value \"%s\". " + "Please check its syntax", + seq_node->name, seq_node->val); goto error; } if (DetectPortIsCompletePortSpace(ghn)) { SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY, - "Port var - \"%s\" has the complete Port range negated " - "with it's value \"%s\". Port space range is NIL. " - "Probably have a !any or a port range that supplies " - "a NULL address range", seq_node->name, seq_node->val); + "Port var - \"%s\" has the complete Port range negated " + "with its value \"%s\". Port space range is NIL. " + "Probably have a !any or a port range that supplies " + "a NULL address range", + seq_node->name, seq_node->val); DetectPortCleanupList(NULL, gh); DetectPortCleanupList(NULL, ghn); goto error;