<!--
{
  "availability" : [
    "iOS: 3.1.0 -",
    "iPadOS: 3.1.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIVideoEditorControllerDelegate/videoEditorController(_:didFailWithError:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIVideoEditorControllerDelegate(im)videoEditorController:didFailWithError:"
  },
  "title" : "videoEditorController(_:didFailWithError:)"
}
-->

# videoEditorController(_:didFailWithError:)

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

```
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

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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)