add log when failed sending batch

This commit is contained in:
casperlamboo 2016-04-26 11:49:39 +02:00
parent 1f8bc2906e
commit d67cf46a04
1 changed files with 3 additions and 1 deletions

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);