Skip to content

Commit eafdd72

Browse files
authored
Report proper error (#177)
1 parent 96bdafc commit eafdd72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Subprocess/Platforms/Subprocess+Darwin.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ extension Configuration {
393393
)
394394
} else {
395395
error = SubprocessError(
396-
code: .init(.spawnFailed),
397-
underlyingError: .init(rawValue: spawnAttributeError)
396+
code: .init(.failedToChangeWorkingDirectory(self.workingDirectory?.string ?? "unknown")),
397+
underlyingError: .init(rawValue: chdirError)
398398
)
399399
}
400400
throw error

0 commit comments

Comments
 (0)