summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-01-16 13:29:35 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-01-16 13:29:35 (GMT)
commite52db8b73a4c2395936d72d215e3941b588ce265 (patch)
treebec8954b5c11e75049d22db148da6d21db19bc7e
parent2092cc6ad8af82b0cc6c9ba53a0f20994bf04ae2 (diff)
downloadtcl-e52db8b73a4c2395936d72d215e3941b588ce265.zip
tcl-e52db8b73a4c2395936d72d215e3941b588ce265.tar.gz
tcl-e52db8b73a4c2395936d72d215e3941b588ce265.tar.bz2
Ensure that error messages are always set, even in believed-unreachable code.
-rw-r--r--library/http/http.tcl1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl
index 1496d63..046cdeb 100644
--- a/library/http/http.tcl
+++ b/library/http/http.tcl
@@ -707,6 +707,7 @@ proc http::cleanup {token} {
proc http::Connect {token} {
variable $token
upvar 0 $token state
+ set err "due to unexpected EOF"
if {[eof $state(sock)] ||
[string length [set err [fconfigure $state(sock) -error]]]} {
Finish $token "connect failed $err" 1