mirror of
https://github.com/apple/swift-system
synced 2026-11-23 04:34:26 +00:00
FileDescriptor.open traps when options contains .create but permissions is nil. The previous precondition could elide its message in optimized builds, leaving users to hunt through source to diagnose the crash. Use fatalError with a descriptive message so the reason is always present in the crash dump, and document the trapping behavior. Fixes #78