From c7d541830db935418113737413bbe4a373afbefc Mon Sep 17 00:00:00 2001 From: Sid Vishnoi <8426945+sidvishnoi@users.noreply.github.com> Date: Wed, 5 Jun 2024 16:08:18 +0530 Subject: [PATCH] fix(respecDocWriter): handle console warning right (#4727) --- tools/respecDocWriter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/respecDocWriter.js b/tools/respecDocWriter.js index f7d7f1fae1..6f5b76e220 100644 --- a/tools/respecDocWriter.js +++ b/tools/respecDocWriter.js @@ -320,7 +320,7 @@ function handleConsoleMessages(page, onError, onWarning) { const text = args.filter(msg => msg !== "undefined")[0] || ""; const type = message.type(); if ( - (type === "error" || type === "warning") && + (type === "error" || type === "warning" || type === "warn") && msgText && // browser errors have text !message.args().length // browser errors/warnings have no arguments ) {