Index: src/exceptions/OFCopyItemFailedException.m ================================================================== --- src/exceptions/OFCopyItemFailedException.m +++ src/exceptions/OFCopyItemFailedException.m @@ -60,18 +60,12 @@ [super dealloc]; } - (OFString*)description { - if (_errNo != 0) - return [OFString stringWithFormat: - @"Failed to copy item %@ to %@: %@", - _sourcePath, _destinationPath, of_strerror(_errNo)]; - else - return [OFString stringWithFormat: - @"Failed to copy item %@ to %@!", - _sourcePath, _destinationPath]; + return [OFString stringWithFormat: @"Failed to copy item %@ to %@: %@", + _sourcePath, _destinationPath, of_strerror(_errNo)]; } - (OFString*)sourcePath { OF_GETTER(_sourcePath, true) Index: src/exceptions/OFMoveItemFailedException.m ================================================================== --- src/exceptions/OFMoveItemFailedException.m +++ src/exceptions/OFMoveItemFailedException.m @@ -60,18 +60,13 @@ [super dealloc]; } - (OFString*)description { - if (_errNo != 0) - return [OFString stringWithFormat: - @"Failed to move item at path %@ to %@: %@", - _sourcePath, _destinationPath, of_strerror(_errNo)]; - else - return [OFString stringWithFormat: - @"Failed to move item at path %@ to %@!", - _sourcePath, _destinationPath]; + return [OFString stringWithFormat: + @"Failed to move item at path %@ to %@: %@", + _sourcePath, _destinationPath, of_strerror(_errNo)]; } - (OFString*)sourcePath { OF_GETTER(_sourcePath, true) Index: src/exceptions/OFRemoveItemFailedException.m ================================================================== --- src/exceptions/OFRemoveItemFailedException.m +++ src/exceptions/OFRemoveItemFailedException.m @@ -55,17 +55,13 @@ [super dealloc]; } - (OFString*)description { - if (_errNo != 0) - return [OFString stringWithFormat: - @"Failed to remove item at path %@: %@", - _path, of_strerror(_errNo)]; - else - return [OFString stringWithFormat: - @"Failed to remove item at path %@!", _path]; + return [OFString stringWithFormat: + @"Failed to remove item at path %@: %@", + _path, of_strerror(_errNo)]; } - (OFString*)path { OF_GETTER(_path, true)