0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-11-14 00:17:55 +01:00

add log when failed sending batch

This commit is contained in:
casperlamboo 2016-04-26 11:49:39 +02:00
parent 1f8bc2906e
commit d67cf46a04

View File

@ -97,8 +97,10 @@ export default class Doodle3DBox extends EventDispatcher {
const response = await this.printer.print(gcode, start, start);
// maybe do something with failing response
console.log(`batch sent: ${ index }`, printRequest);
console.log(`batch sent: ${ index }`);
} catch(error) {
console.log(`failed sending batch: ${ index }`);
await sleep(1000);
await this._sendBatch(gcode, index);