We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13a4ba4 commit 711109aCopy full SHA for 711109a
lib/bluetooth.ts
@@ -525,7 +525,7 @@ class MicrobitWebBluetoothConnectionImpl
525
);
526
// TODO: get a grip on this return value
527
if (fullFlashResult !== FlashResult.Success) {
528
- throw new Error();
+ throw new Error(`Full flash failed: ${fullFlashResult}`);
529
}
530
return;
531
lib/native/bluetooth.ts
@@ -154,7 +154,6 @@ export async function connectHandlingBond(
154
try {
155
await connection.waitForDisconnect(3000);
156
} catch (e) {
157
- // TODO: we have two of thest TimeoutError classes!
158
if (e instanceof TimeoutError) {
159
connection.log(
160
"No disconnect after bond, assuming connection is stable",
0 commit comments