From 55137c9db4ed7226a6a68256c3cb9fdad7ad7c83 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 30 Aug 2024 17:18:47 -0400 Subject: chore: fix linting (#25315) I accidentally broke this earlier. --- tools/lint.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/lint.js b/tools/lint.js index 5f97e3cb7..9b3260b9e 100755 --- a/tools/lint.js +++ b/tools/lint.js @@ -88,7 +88,12 @@ async function dlint() { }), ); } - await Promise.allSettled(pending); + const results = await Promise.allSettled(pending); + for (const result of results) { + if (result.status === "rejected") { + throw new Error(result.reason); + } + } } // `prefer-primordials` has to apply only to files related to bootstrapping, -- cgit v1.2.3