From 9dd6323b85b9541bc353a7cecf4e1ada97225e26 Mon Sep 17 00:00:00 2001 From: Chase Lambert Date: Mon, 2 Apr 2018 09:34:00 -0400 Subject: [PATCH] Better failure message for exact keys --- check_http_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_http_json.py b/check_http_json.py index dac67ec..2d614e4 100755 --- a/check_http_json.py +++ b/check_http_json.py @@ -161,7 +161,7 @@ class JsonRuleProcessor: k, v = kv.split(',') key, alias = _getKeyAlias(k) if (self.helper.equals(key, v) == False): - failure += " Value for key %s did not match %s." % (alias, v) + failure += " Key %s mismatch. %s != %s" % (alias, v, self.helper.get(key)) return failure def checkThreshold(self, key, alias, r):