Index: src/OFString.m ================================================================== --- src/OFString.m +++ src/OFString.m @@ -41,10 +41,11 @@ #import "OFHTTPRequestFailedException.h" #import "OFInitializationFailedException.h" #import "OFInvalidArgumentException.h" #import "OFInvalidEncodingException.h" #import "OFInvalidFormatException.h" +#import "OFOpenFileFailedException.h" #import "OFOutOfMemoryException.h" #import "OFOutOfRangeException.h" #import "macros.h" #import "of_asprintf.h" @@ -660,12 +661,13 @@ @try { OFFile *file; if (stat([path cString], &s) == -1) - @throw [OFInitializationFailedException - newWithClass: isa]; + @throw [OFOpenFileFailedException newWithClass: isa + path: path + mode: @"rb"]; file = [[OFFile alloc] initWithPath: path mode: @"rb"]; @try {