Skip to content

Commit 711109a

Browse files
Tweaks
1 parent 13a4ba4 commit 711109a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/bluetooth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ class MicrobitWebBluetoothConnectionImpl
525525
);
526526
// TODO: get a grip on this return value
527527
if (fullFlashResult !== FlashResult.Success) {
528-
throw new Error();
528+
throw new Error(`Full flash failed: ${fullFlashResult}`);
529529
}
530530
return;
531531
}

lib/native/bluetooth.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ export async function connectHandlingBond(
154154
try {
155155
await connection.waitForDisconnect(3000);
156156
} catch (e) {
157-
// TODO: we have two of thest TimeoutError classes!
158157
if (e instanceof TimeoutError) {
159158
connection.log(
160159
"No disconnect after bond, assuming connection is stable",

0 commit comments

Comments
 (0)