Minor fixes/tweaks

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28605 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-09-03 09:45:23 +00:00
parent e833003ca5
commit 80afb705cf
4 changed files with 184 additions and 158 deletions

View file

@ -1463,10 +1463,11 @@ static NSURLProtocol *placeholder = nil;
}
if (event == NSStreamEventErrorOccurred)
{
NSLog(@"An error %@ occurred on stream %@ of %@",
[stream streamError], stream, self);
NSError *error = [[[stream streamError] retain] autorelease];
NSLog(@"An error %@ occurred on stream %@ of %@", error, stream, self);
[self stopLoading];
[this->client URLProtocol: self didFailWithError: [stream streamError]];
[this->client URLProtocol: self didFailWithError: error];
}
else
{