kvalitní horká záplata
This commit is contained in:
parent
dc3a0282b0
commit
bb9c7af9d4
@ -40,7 +40,7 @@ const runEvent = async (name: string, args: unknown[]) => {
|
||||
for (const listener of superEventy[name] || []) {
|
||||
if (!listener) continue; // [after] pozice v superEventy arrayi se dají nastavovat a teoreticky může nastat mezera
|
||||
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) {
|
||||
if (process.env.dieOnError) throw e;
|
||||
log("error pri spusteni super listeneru", e as Error);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user