diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-01-16 13:32:07 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-01-16 13:32:07 (GMT) |
commit | d18fb9089e240310aa9bbf393a7feec2718aa6f3 (patch) | |
tree | 8ff016bfe45fa2c2048cd6eeb03f209beafaa738 /library | |
parent | 14c7b573fc0d6f98fe016525ca46a0dc752062a1 (diff) | |
parent | 65bb940fd01011167cda259485ddde99031a05d0 (diff) | |
download | tcl-d18fb9089e240310aa9bbf393a7feec2718aa6f3.zip tcl-d18fb9089e240310aa9bbf393a7feec2718aa6f3.tar.gz tcl-d18fb9089e240310aa9bbf393a7feec2718aa6f3.tar.bz2 |
Ensure that error messages are always set, even in believed-unreachable code.
Diffstat (limited to 'library')
-rw-r--r-- | library/http/http.tcl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl index 1a82c2e..e7224a2 100644 --- a/library/http/http.tcl +++ b/library/http/http.tcl @@ -863,6 +863,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)] || [set err [fconfigure $state(sock) -error]] ne "" |