X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=index.js;fp=index.js;h=bfa6d8a1b76342d9a33e8a5469b2ce8523fd1435;hb=30a68209fbec7fc6a0b7aed1e9a5d277d9424e11;hp=2f990748b218d9bc37b4cc5872aa6e793bf83197;hpb=be095be5c094cd439f1ce9b2646f4ef6f8be53b1;p=zombocom-ai diff --git a/index.js b/index.js index 2f99074..bfa6d8a 100644 --- a/index.js +++ b/index.js @@ -300,7 +300,8 @@ io_bus.on("connection", (socket) => { // Give all clients the new image io_bus.emit('output', filename); } catch (e) { - console.log("Error executing turtle script: " + e); + // Send any error out to the users + io_bus.emit('error', e.toString()) } });