From 3a3ee44663f9aa9943d2087cce1b1e8735422c20 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Mon, 2 Oct 2023 12:24:29 +0200 Subject: [PATCH] fix display of objects in the documentation error page (#11261) --- docs/shared/DisplayClientError.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/shared/DisplayClientError.js b/docs/shared/DisplayClientError.js index 3ffac4d2602..508ab4bc315 100644 --- a/docs/shared/DisplayClientError.js +++ b/docs/shared/DisplayClientError.js @@ -137,7 +137,7 @@ function ErrorDetails({ version, messageId, args }) { const errorMessage = useMemo(() => { return data?.message ? args.reduce( - (/** @type{string} */ acc, arg) => acc.replace('%s', String(arg)), + (/** @type{string} */ acc, arg) => acc.replace(/%[sdfo]/, String(arg)), String(data.message) ) : null;