kvalitní horká záplata

This commit is contained in:
Histmy 2024-01-04 19:47:18 +01:00
parent dc3a0282b0
commit bb9c7af9d4

View File

@ -40,7 +40,7 @@ const runEvent = async (name: string, args: unknown[]) => {
for (const listener of superEventy[name] || []) { for (const listener of superEventy[name] || []) {
if (!listener) continue; // [after] pozice v superEventy arrayi se dají nastavovat a teoreticky může nastat mezera if (!listener) continue; // [after] pozice v superEventy arrayi se dají nastavovat a teoreticky může nastat mezera
try { try {
if (listener(...args)) return true; // if listener returns true, it means, we shouldn't continue with execustion if (await listener(...args)) return true; // if listener returns true, it means, we shouldn't continue with execustion
} catch (e) { } catch (e) {
if (process.env.dieOnError) throw e; if (process.env.dieOnError) throw e;
log("error pri spusteni super listeneru", e as Error); log("error pri spusteni super listeneru", e as Error);