---
title: "sensorReader(_:fetchDevicesDidFailWithError:)"
framework: sensorkit
role: symbol
role_heading: Instance Method
path: "sensorkit/srsensorreaderdelegate/sensorreader(_:fetchdevicesdidfailwitherror:)"
---

# sensorReader(_:fetchDevicesDidFailWithError:)

Provides the delegate a reason when the reader fails to fetch devices.

## Declaration

```swift
optional func sensorReader(_ reader: SRSensorReader, fetchDevicesDidFailWithError error: any Error)
```

## Parameters

- `reader`: The reader that failed to fetch devices.
- `error`: An object that describes the cause of failure.

## See Also

### Fetching Devices

- [sensorReader(_:didFetch:)](sensorkit/srsensorreaderdelegate/sensorreader(_:didfetch:).md)
- [SRDevice](sensorkit/srdevice.md)
