mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-14 18:10:57 +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
5128f4daac
commit
6bfa298cc8
2 changed files with 11 additions and 4 deletions
|
@ -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>
|
2005-05-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/GSFileHandle.m: Increase size of buffer for incoming data ...
|
* Source/GSFileHandle.m: Increase size of buffer for incoming data ...
|
||||||
|
|
|
@ -662,7 +662,8 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
||||||
* Tell superclass that the load failed - let it do housekeeping.
|
* Tell superclass that the load failed - let it do housekeeping.
|
||||||
*/
|
*/
|
||||||
[self endLoadInBackground];
|
[self endLoadInBackground];
|
||||||
[self backgroundLoadDidFailWithReason: e];
|
[self backgroundLoadDidFailWithReason:
|
||||||
|
[NSString stringWithFormat: @"Failed to connect: %@", e]];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -832,7 +833,8 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
||||||
* Tell superclass that the load failed - let it do housekeeping.
|
* Tell superclass that the load failed - let it do housekeeping.
|
||||||
*/
|
*/
|
||||||
[self endLoadInBackground];
|
[self endLoadInBackground];
|
||||||
[self backgroundLoadDidFailWithReason: @"Failed to write request"];
|
[self backgroundLoadDidFailWithReason:
|
||||||
|
[NSString stringWithFormat: @"Failed to write request: %@", e]];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1085,8 +1087,8 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
||||||
/*
|
/*
|
||||||
* Tell superclass that the load failed - let it do housekeeping.
|
* Tell superclass that the load failed - let it do housekeeping.
|
||||||
*/
|
*/
|
||||||
[self backgroundLoadDidFailWithReason: [NSString stringWithFormat:
|
[self backgroundLoadDidFailWithReason:
|
||||||
@"Unable to connect to %@:%@ ... %s",
|
[NSString stringWithFormat: @"Unable to connect to %@:%@ ... %s",
|
||||||
host, port, GSLastErrorStr(errno)]];
|
host, port, GSLastErrorStr(errno)]];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue