diff options
author | Vendicated <vendicated@riseup.net> | 2023-04-18 02:54:22 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-04-18 02:54:22 +0200 |
commit | 29749e93c7ecf67160aed316438f5b9f669cca98 (patch) | |
tree | 8af268fb66de05bf6a16e33633636f5ce416f471 /scripts | |
parent | 993c6be2198ea18fec6d969bfd4d071221238a06 (diff) | |
download | Vencord-29749e93c7ecf67160aed316438f5b9f669cca98.tar.gz Vencord-29749e93c7ecf67160aed316438f5b9f669cca98.tar.bz2 Vencord-29749e93c7ecf67160aed316438f5b9f669cca98.zip |
CI Reporter fixes
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/generateReport.ts | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/scripts/generateReport.ts b/scripts/generateReport.ts index d55cc8a..b5e705b 100644 --- a/scripts/generateReport.ts +++ b/scripts/generateReport.ts @@ -186,7 +186,16 @@ page.on("console", async e => { } else if (isDebug) { console.error(e.text()); } else if (level === "error") { - const text = e.text(); + const text = await Promise.all( + e.args().map(async a => { + try { + return await maybeGetError(a) || await a.jsonValue(); + } catch (e) { + return a.toString(); + } + }) + ).then(a => a.join(" ")); + if (!text.startsWith("Failed to load resource: the server responded with a status of")) { console.error("Got unexpected error", text); report.otherErrors.push(text); @@ -258,7 +267,7 @@ function runTime(token: string) { if (!isWasm) await wreq.e(id as any); - await new Promise(r => setTimeout(r, 100)); + await new Promise(r => setTimeout(r, 500)); } console.error("[PUP_DEBUG]", "Finished loading chunks!"); |