Skip to content

Commit 032098a

Browse files
committed
Improve the log message when Roomba fails to complete a docking manoeuvre
1 parent 836710d commit 032098a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/mean-bugs-attack.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"homebridge-roomba2": patch
3+
---
4+
5+
Improve the log message when Roomba fails to complete a docking manoeuvre

src/accessory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export default class RoombaAccessory implements AccessoryPlugin {
268268
break;
269269
}
270270
} catch (error) {
271-
this.log((error as Error).message);
271+
this.log.warn(`Roomba failed to dock: ${(error as Error).message}`);
272272
this.endRoombaIfNeeded(roomba);
273273
}
274274
}

0 commit comments

Comments
 (0)