Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Examples/MistDemo/Sources/MistDemo/MistDemo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ internal enum MistDemo {
} catch {
// PhasedIntegrationTest prints a copy-friendly message before rethrowing;
// exit cleanly instead of trapping on an uncaught top-level throw.
let message = (error as? any LocalizedError)?.errorDescription
let message =
(error as? any LocalizedError)?.errorDescription
?? String(describing: error)
fputs("❌ \(message)\n", stderr)
// Glibc exposes `stderr` as a mutable global, which Swift 6 strict
// concurrency rejects; FileHandle keeps this portable to Linux.
FileHandle.standardError.write(Data("❌ \(message)\n".utf8))
exit(1)
}
}
Expand Down
Loading