<!--
{
  "availability" : [
    "macOS: 10.3.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWorkspace/LaunchOptions/withErrorPresentation",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSWorkspaceLaunchOptions@NSWorkspaceLaunchWithErrorPresentation"
  },
  "title" : "withErrorPresentation"
}
-->

# withErrorPresentation

Display an error panel to the user if a failure occurs.

```
static var withErrorPresentation: NSWorkspace.LaunchOptions { get }
```

---

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)