---
title: "recordingEditor(_:didFailWithError:)"
framework: ScreenCaptureKit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "screencapturekit/screcordingeditordelegate/recordingeditor(_:didfailwitherror:)"
---

# recordingEditor(_:didFailWithError:)

## Declaration

```swift
optional func recordingEditor(_ editor: SCRecordingEditor, didFailWithError error: any Error)
```

## Discussion

Discussion recordingEditor:didFailWithError: Called when the recording editor encounters an error.
