function start_bus_timer() {
const bus = state.bus;
- bus.timer = 3; // XXX: 30 in production
+ bus.timer = 30;
emit_bus_timer();
bus_interval = setInterval(emit_bus_timer, 1000);
}
// 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())
}
});