MEM(vb = fr_value_box_alloc_null(ctx));
if (regex_request_to_sub(vb, vb, request, idx.vb_uint32) < 0) {
- REDEBUG2("No previous numbered regex capture group");
+ REDEBUG2("No previous numbered regex capture group '%u'", idx.vb_uint32);
talloc_free(vb);
return XLAT_ACTION_FAIL;
}
MEM(vb = fr_value_box_alloc_null(ctx));
if (regex_request_to_sub_named(vb, vb, request, arg->vb_strvalue) < 0) {
- REDEBUG2("No previous named regex capture group");
+ REDEBUG2("No previous named regex capture group '%s'", arg->vb_strvalue);
talloc_free(vb);
return XLAT_ACTION_FAIL;
}
test_fail
}
-if (!(Module-Failure-Message[*] == "No previous named regex capture group")) {
+if (!(Module-Failure-Message[*] == "No previous named regex capture group 'foo'")) {
test_fail
}
test_fail
}
-if (!(Module-Failure-Message[*] == "No previous numbered regex capture group")) {
+if (!(Module-Failure-Message[*] == "No previous numbered regex capture group '1'")) {
test_fail
}