File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,8 @@ extension FileSystemError: CustomStringConvertible {
175
175
switch self . kind {
176
176
case . invalidAccess:
177
177
return " invalid access "
178
- case . ioError:
179
- return " encountered I/O error "
178
+ case . ioError( let code ) :
179
+ return " encountered I/O error (code: \( code ) ) "
180
180
case . isDirectory:
181
181
return " is a directory "
182
182
case . noEntry:
@@ -199,8 +199,8 @@ extension FileSystemError: CustomStringConvertible {
199
199
switch self . kind {
200
200
case . invalidAccess:
201
201
return " invalid access to \( path) "
202
- case . ioError:
203
- return " encountered an I/O error while reading \( path) "
202
+ case . ioError( let code ) :
203
+ return " encountered an I/O error (code: \( code ) ) while reading \( path) "
204
204
case . isDirectory:
205
205
return " \( path) is a directory "
206
206
case . noEntry:
You can’t perform that action at this time.
0 commit comments