Fix Vencord

This commit is contained in:
Vendicated 2023-04-04 21:09:47 +02:00
parent 2e6dfaa879
commit f092f434fe
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
12 changed files with 42 additions and 141 deletions

View file

@ -109,6 +109,8 @@ export const find = traceFunction("find", function find(filter: FilterFn, getDef
if (!isWaitFor) {
const err = new Error("Didn't find module matching this filter");
if (IS_DEV) {
logger.error(err);
logger.error(filter);
if (!devToolsOpen)
// Strict behaviour in DevBuilds to fail early and make sure the issue is found
throw err;