Add SC1010 to codes redacted in syntax error messages (#2388)

This commit is contained in:
Laurent Nguyen
2026-02-16 18:34:54 +01:00
committed by GitHub
parent ed3a79f880
commit 39ac7cf3f2

View File

@@ -6,7 +6,7 @@ import { MinimalQueryIterator, nextPage } from "../IteratorUtilities";
// Redact sensitive information from BadRequest errors with specific codes
export const redactSyntaxErrorMessage = (error: unknown): unknown => {
const codesToRedact = ["SC1001", "SC2001"];
const codesToRedact = ["SC1001", "SC2001", "SC1010"];
try {
// Handle error objects with a message property