@@ -13,14 +13,14 @@ * file. */ #include "config.h" -#import "OFChangeCurrentDirectoryPathFailedException.h" +#import "OFChangeCurrentDirectoryFailedException.h" #import "OFString.h" -@implementation OFChangeCurrentDirectoryPathFailedException +@implementation OFChangeCurrentDirectoryFailedException @synthesize path = _path, errNo = _errNo; + (instancetype)exceptionWithPath: (OFString *)path errNo: (int)errNo { return [[[self alloc] initWithPath: path errNo: errNo] autorelease]; @@ -59,9 +59,9 @@ } - (OFString *)description { return [OFString stringWithFormat: - @"Failed to change the current directory path to %@: %@", + @"Failed to change the current directory to %@: %@", _path, OFStrError(_errNo)]; } @end