Tweak error reporting

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21225 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2005-05-13 10:48:17 +00:00
parent 512449ad79
commit db2770c382
2 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2005-05-13 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSHTTPURLHandle.m: Minor improvement to detail of failure
reason.
2005-05-11 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSFileHandle.m: Increase size of buffer for incoming data ...

View file

@ -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;
}