From 9c2545ab16b31b6d1d0fcdf56f2aebcfd44a5799 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Tue, 28 May 2024 04:27:36 -0300 Subject: [PATCH] undo explosion --- scripts/generateReport.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/generateReport.ts b/scripts/generateReport.ts index cd3767404..ef7ce04a3 100644 --- a/scripts/generateReport.ts +++ b/scripts/generateReport.ts @@ -41,9 +41,9 @@ const browser = await pup.launch({ const page = await browser.newPage(); await page.setUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"); -async function maybeGetError(handle: JSHandle) { - return (handle as JSHandle).getProperty("message") - .then(m => m?.jsonValue() ?? "Unknown Error"); +async function maybeGetError(handle: JSHandle): Promise { + return await (handle as JSHandle)?.getProperty("message") + .then(m => m?.jsonValue()); } const report = { @@ -236,7 +236,7 @@ page.on("console", async e => { const [, name] = failedToStartMatch; report.badStarts.push({ plugin: name, - error: cause + error: cause ?? "Unknown error" }); break;