diff --git a/src/corebluetooth/central_delegate.rs b/src/corebluetooth/central_delegate.rs index 9dacd721..d7651e10 100644 --- a/src/corebluetooth/central_delegate.rs +++ b/src/corebluetooth/central_delegate.rs @@ -345,11 +345,12 @@ declare_class!( &self, _central: &CBCentralManager, peripheral: &CBPeripheral, - _error: Option<&NSError>, + error: Option<&NSError>, ) { trace!( - "delegate_centralmanager_diddisconnectperipheral_error {}", - peripheral_debug(peripheral) + "delegate_centralmanager_diddisconnectperipheral_error {} (error={:?})", + peripheral_debug(peripheral), + error ); let peripheral_uuid = nsuuid_to_uuid(unsafe { &peripheral.identifier() }); self.send_event(CentralDelegateEvent::DisconnectedDevice { peripheral_uuid });