Skip to content

Commit

Permalink
fix(respecDocWriter): handle console warning right (#4727)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi authored Jun 5, 2024
1 parent 42fdc00 commit c7d5418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/respecDocWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {
Expand Down

0 comments on commit c7d5418

Please sign in to comment.