ObjFW  Diff

Differences From Artifact [66bdc21727]:

To Artifact [22b0d59c65]:


15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 */

#include "config.h"

#import "OFLinkFailedException.h"
#import "OFString.h"

#if defined(OF_HAVE_LINK) || defined(OF_WINDOWS)
@implementation OFLinkFailedException
@synthesize sourcePath = _sourcePath, destinationPath = _destinationPath;
@synthesize errNo = _errNo;

+ (instancetype)exceptionWithSourcePath: (OFString*)sourcePath
			destinationPath: (OFString*)destinationPath
{







<







15
16
17
18
19
20
21

22
23
24
25
26
27
28
 */

#include "config.h"

#import "OFLinkFailedException.h"
#import "OFString.h"


@implementation OFLinkFailedException
@synthesize sourcePath = _sourcePath, destinationPath = _destinationPath;
@synthesize errNo = _errNo;

+ (instancetype)exceptionWithSourcePath: (OFString*)sourcePath
			destinationPath: (OFString*)destinationPath
{
95
96
97
98
99
100
101
102
		    _sourcePath, _destinationPath, of_strerror(_errNo)];
	else
		return [OFString stringWithFormat:
		    @"Failed to link file %@ to %@!",
		    _sourcePath, _destinationPath];
}
@end
#endif







<
94
95
96
97
98
99
100

		    _sourcePath, _destinationPath, of_strerror(_errNo)];
	else
		return [OFString stringWithFormat:
		    @"Failed to link file %@ to %@!",
		    _sourcePath, _destinationPath];
}
@end