We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3eba1fa + 19bfbdd commit fdb5900Copy full SHA for fdb5900
Sources/TSCBasic/TemporaryFile.swift
@@ -25,7 +25,7 @@ public enum TempFileError: Error {
25
case other(Int32)
26
27
/// Couldn't find a temporary directory.
28
- case couldNotFindTmpDir
+ case couldNotFindTmpDir(String)
29
}
30
31
extension TempFileError: CustomNSError {
@@ -55,7 +55,7 @@ private extension TempFileError {
55
public func determineTempDirectory(_ dir: AbsolutePath? = nil) throws -> AbsolutePath {
56
let tmpDir = dir ?? cachedTempDirectory
57
guard localFileSystem.isDirectory(tmpDir) else {
58
- throw TempFileError.couldNotFindTmpDir
+ throw TempFileError.couldNotFindTmpDir(tmpDir.pathString)
59
60
return tmpDir
61
0 commit comments