From ea654257c79dd8bd15eccaefb95a7a3be47500aa Mon Sep 17 00:00:00 2001 From: Evelyn Eastmond Date: Sun, 24 Jun 2018 19:48:36 -0400 Subject: [PATCH] Adding error reporting from BLESesion in VM. --- src/containers/connection-modal.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/containers/connection-modal.jsx b/src/containers/connection-modal.jsx index e06456ab1..93a5b94b5 100644 --- a/src/containers/connection-modal.jsx +++ b/src/containers/connection-modal.jsx @@ -20,6 +20,11 @@ class ConnectionModal extends React.Component { phase: 'connected' }); }); + this.props.vm.on('PERIPHERAL_ERROR', () => { + this.setState({ + phase: 'error' + }); + }); } handleConnecting (peripheralId) { this.props.vm.connectToPeripheral(this.props.extensionId, peripheralId);