Skip to content

Commit b4cbd56

Browse files
authored
Add new errors to FileSystemError.description (#4003)
1 parent 333c9f3 commit b4cbd56

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Sources/Workspace/Diagnostics.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ extension FileSystemError: CustomStringConvertible {
182182
return "unknown system error"
183183
case .alreadyExistsAtDestination:
184184
return "already exists in file system"
185+
case .couldNotChangeDirectory:
186+
return "could not change directory"
187+
case .mismatchedByteCount(expected: let expected, actual: let actual):
188+
return "mismatched byte count, expected \(expected), got \(actual)"
185189
}
186190
}
187191

@@ -202,6 +206,10 @@ extension FileSystemError: CustomStringConvertible {
202206
return "unknown system error while operating on \(path)"
203207
case .alreadyExistsAtDestination:
204208
return "\(path) already exists in file system"
209+
case .couldNotChangeDirectory:
210+
return "could not change directory to \(path)"
211+
case .mismatchedByteCount(expected: let expected, actual: let actual):
212+
return "mismatched byte count, expected \(expected), got \(actual)"
205213
}
206214
}
207215
}

0 commit comments

Comments
 (0)