mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-14 18:01:21 +00:00
Update workers.js
This commit is contained in:
1 parent
a340c9a0b7
commit
1d1b484bca
1 file changed
+1
-2
@@ -12,8 +12,7 @@ window.create_worker = async (name, filePath = null) => {
|
||||
try {
|
||||
worker = await puter.workers.create(name, workerFile);
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
console.error('Error creating worker:', err.error);
|
||||
puter.ui.alert(`Error creating worker: ${err.error?.message}`);
|
||||
}
|
||||
|
||||
return worker;
|
||||
|
||||
Reference in new issue
Block a user