Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

fix(plugins): say how to save a refused masked-secret list change

Yudhi Armyndharis3d23b0b17aeb
diff --git a/src/modules/plugins/redact-config.ts b/src/modules/plugins/redact-config.ts
index 1526cabe7..94d5adaa5 100644
--- a/src/modules/plugins/redact-config.ts
+++ b/src/modules/plugins/redact-config.ts
@@ -155,7 +155,7 @@ function restoreValue(
const unbound = restoreValue(item, undefined, itemField);
if (stableStringify(unbound) !== stableStringify(restoreValue(item, group[0], itemField))) {
throw new BadRequestException(
- 'Removing an entry that shares its masked content with another is ambiguous; re-enter the remaining secret values',
+ 'This change to a list of masked secrets cannot be matched to the stored values; re-enter the remaining secret values, or make the change in two saves',
);
}
return unbound;