Differences From Artifact [31714a2509]:
- File
src/exceptions/OFCopyItemFailedException.m
— part of check-in
[62e2de30b9]
at
2015-02-16 08:39:17
on branch trunk
— Explicitly pass errno to exceptions
The old behaviour where the exception would access errno directly on
creation of the exception was very fragile. The two main problems with
it were that sometimes it would pick up an errno even though none had
been set and in other cases that when the exception was created errno
had already been overridden.This also greatly increases errno handling on Win32, especially in
conjunction with sockets. It can still be improved further, though. (user: js, size: 1884) [annotate] [blame] [check-ins using]
To Artifact [dcfb3bb51c]:
- File
src/exceptions/OFCopyItemFailedException.m
— part of check-in
[e8bb29e8e8]
at
2015-02-20 18:52:27
on branch trunk
— Remove useless descriptions in some exceptions
errNo could never be 0 for those exceptions, so there's no point in
returning a different description if errNo is 0. (user: js, size: 1737) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
58 59 60 61 62 63 64 | [_destinationPath release]; [super dealloc]; } - (OFString*)description { | < | < | < < < < | 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | [_destinationPath release]; [super dealloc]; } - (OFString*)description { return [OFString stringWithFormat: @"Failed to copy item %@ to %@: %@", _sourcePath, _destinationPath, of_strerror(_errNo)]; } - (OFString*)sourcePath { OF_GETTER(_sourcePath, true) } |
︙ | ︙ |