fix: catch thrown errors in ap helpers._test

This commit is contained in:
Julian Lam
2026-04-16 13:30:09 -04:00
parent dbf2825197
commit 906ca0440f

View File

@@ -33,7 +33,11 @@ Helpers._webfingerCache = webfingerCache; // exported for tests
Helpers._test = (method, args) => {
// because I am lazy and I probably wrote some variant of this below code 1000 times already
setTimeout(async () => {
console.log(await method.apply(method, args));
try {
console.log(await method.apply(method, args));
} catch (e) {
console.log('Exception thrown', e);
}
}, 2500);
};
// process.nextTick(() => {