diff --git a/ChangeLog b/ChangeLog index 918d56768..a9e1dd74d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-13 Richard Frith-Macdonald + + * Source/GSHTTPURLHandle.m: Minor improvement to detail of failure + reason. + 2005-05-11 Richard Frith-Macdonald * Source/GSFileHandle.m: Increase size of buffer for incoming data ... diff --git a/Source/GSHTTPURLHandle.m b/Source/GSHTTPURLHandle.m index 4032c0e00..1f6cf29aa 100644 --- a/Source/GSHTTPURLHandle.m +++ b/Source/GSHTTPURLHandle.m @@ -662,7 +662,8 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data) * Tell superclass that the load failed - let it do housekeeping. */ [self endLoadInBackground]; - [self backgroundLoadDidFailWithReason: e]; + [self backgroundLoadDidFailWithReason: + [NSString stringWithFormat: @"Failed to connect: %@", e]]; return; } @@ -832,7 +833,8 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data) * Tell superclass that the load failed - let it do housekeeping. */ [self endLoadInBackground]; - [self backgroundLoadDidFailWithReason: @"Failed to write request"]; + [self backgroundLoadDidFailWithReason: + [NSString stringWithFormat: @"Failed to write request: %@", e]]; return; } else @@ -1085,8 +1087,8 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data) /* * Tell superclass that the load failed - let it do housekeeping. */ - [self backgroundLoadDidFailWithReason: [NSString stringWithFormat: - @"Unable to connect to %@:%@ ... %s", + [self backgroundLoadDidFailWithReason: + [NSString stringWithFormat: @"Unable to connect to %@:%@ ... %s", host, port, GSLastErrorStr(errno)]]; return; }