aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-05-01 04:26:27 -0300
committerGitHub <noreply@github.com>2023-05-01 07:26:27 +0000
commit6a1cb133cd6cbe2946e4c830291318e873da1d8b (patch)
tree2a01c48bd03bd77e126611f9f911d777706d326d
parentc6196dff81397c259e92cf2aeb26c96a88bbee8a (diff)
downloadVencord-6a1cb133cd6cbe2946e4c830291318e873da1d8b.tar.gz
Vencord-6a1cb133cd6cbe2946e4c830291318e873da1d8b.tar.bz2
Vencord-6a1cb133cd6cbe2946e4c830291318e873da1d8b.zip
Fix blank errors on plugin reports (#1021)
-rw-r--r--scripts/generateReport.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/generateReport.ts b/scripts/generateReport.ts
index 935eae1..9044965 100644
--- a/scripts/generateReport.ts
+++ b/scripts/generateReport.ts
@@ -194,9 +194,10 @@ page.on("console", async e => {
return a.toString();
}
})
- ).then(a => a.join(" "));
+ ).then(a => a.join(" ").trim());
- if (!text.startsWith("Failed to load resource: the server responded with a status of")) {
+
+ if (text.length && !text.startsWith("Failed to load resource: the server responded with a status of")) {
console.error("Got unexpected error", text);
report.otherErrors.push(text);
}