mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 08:30:39 +00:00
Update workers.js
This commit is contained in:
@@ -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