include all the data

This commit is contained in:
Andrew Lavery
2020-05-07 18:15:33 -04:00
parent b3828b175d
commit f795f909b3

View File

@@ -216,7 +216,7 @@ func compareRegex(conditional string, foundMatches map[string]string) (bool, err
} else {
// all we can support is "=" and "==" and "===" for now
if operator != "=" && operator != "==" && operator != "===" {
return false, fmt.Errorf("unexpected operator %q in regex comparator", operator)
return false, fmt.Errorf("unexpected operator %q in regex comparator, cannot compare %q and %q", operator, foundValue, lookForValue)
}
return foundValue == lookForValue, nil