diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-01-16 13:32:52 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-01-16 13:32:52 (GMT) |
commit | bad1c92be68d55a66d905a8dc2478022535682f9 (patch) | |
tree | 26d9c659bf5fea0f28f376e007775230f1b79ed4 /library/http | |
parent | 7af0b5a02b894a6f609aa9ab5bbbb1124754b610 (diff) | |
parent | d18fb9089e240310aa9bbf393a7feec2718aa6f3 (diff) | |
download | tcl-bad1c92be68d55a66d905a8dc2478022535682f9.zip tcl-bad1c92be68d55a66d905a8dc2478022535682f9.tar.gz tcl-bad1c92be68d55a66d905a8dc2478022535682f9.tar.bz2 |
Ensure that error messages are always set, even in believed-unreachable code.
Diffstat (limited to 'library/http')
-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 a30c576..6f0f4ce 100644 --- a/library/http/http.tcl +++ b/library/http/http.tcl @@ -867,6 +867,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 "" |