---
title: "videoEditorController(_:didFailWithError:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uivideoeditorcontrollerdelegate/videoeditorcontroller(_:didfailwitherror:)"
---

# videoEditorController(_:didFailWithError:)

Notifies the delegate when the video editor is unable to load or save a movie.

## Declaration

```swift
optional func videoEditorController(_ editor: UIVideoEditorController, didFailWithError error: any Error)
```

## Parameters

- `editor`: The video editor that was unable to load or save a movie.
- `error`: The loading or saving error.

## Discussion

Discussion Loading a movie into the video editor could fail because of an invalid filesystem path or an invalid media format. Saving could fail because of a lack of disk space or other reasons.
