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:
parent
1f8bc2906e
commit
d67cf46a04
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user