We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2819a97 commit f8d5e0cCopy full SHA for f8d5e0c
src/usb/sagas.ts
@@ -178,10 +178,12 @@ function* handleUsbConnectPybricks(hotPlugDevice?: USBDevice): Generator {
178
);
179
180
// TODO: show error message to user here
181
- console.error('Failed to select USB device configuration:', selectErr);
182
- yield* put(usbDidFailToConnectPybricks());
183
- yield* cleanup();
184
- return;
+ if (selectErr) {
+ console.error('Failed to select USB device configuration:', selectErr);
+ yield* put(usbDidFailToConnectPybricks());
+ yield* cleanup();
185
+ return;
186
+ }
187
}
188
189
assert(
0 commit comments