diff --git a/src/actions/ble.ts b/src/actions/ble.ts index 21575b24..c60e3819 100644 --- a/src/actions/ble.ts +++ b/src/actions/ble.ts @@ -87,7 +87,14 @@ export function connect(): BLEThunkAction { }); } catch (err) { // this can happen if the use cancels the dialog - console.log(err); + if ( + err instanceof DOMException && + err.code === DOMException.NOT_FOUND_ERR + ) { + console.debug('User cancelled connect'); + } else { + console.error(err); + } dispatch(endDisconnect()); return; }