mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: iteration safe assets
This commit is contained in:
1 parent
be9b3a41a8
commit
0dd3e71353
1 file changed
+7
-1
@@ -44,5 +44,11 @@ const methods = [
|
||||
];
|
||||
|
||||
for (const method of methods) {
|
||||
if (allTargets || targets?.includes(method.name)) await method();
|
||||
if (allTargets || targets?.includes(method.name)) {
|
||||
try {
|
||||
await method();
|
||||
} catch (error) {
|
||||
console.warn(`Failed method ${method.name}; skipping...`, error);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user