Skip to content

Commit

Permalink
Update package
Browse files Browse the repository at this point in the history
  • Loading branch information
vmanot committed Oct 28, 2024
1 parent a6f9814 commit 719a547
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public struct ProcessTerminationError: Error, Hashable, LocalizedError {
public let reason: Reason

@available(macCatalyst, unavailable)
fileprivate init(_from process: Process) {
public init(_from process: Process) {
self.process = process
self.status = process.terminationStatus
self.reason = process.terminationReason.reason
Expand Down
6 changes: 3 additions & 3 deletions Sources/Merge/Intramodular/Process/_AsyncProcess.swift
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ extension _AsyncProcess {
return .running
}

var terminationReason: Process.TerminationReason?
var terminationReason: ProcessTerminationError?

if process is _SecAuthorizedProcess {
if !processDidStart.isOpen {
Expand All @@ -574,12 +574,12 @@ extension _AsyncProcess {
}
}

terminationReason = process.terminationReason
terminationReason = ProcessTerminationError(_from: process)

if let terminationReason = terminationReason {
return .terminated(
status: Int(process.terminationStatus),
reason: terminationReason
reason: terminationReason.reason
)
}

Expand Down

0 comments on commit 719a547

Please sign in to comment.