mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
512449ad79
commit
db2770c382
2 changed files with 11 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue