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 | 4609d947325493cbb0438bd03f6bc912d9f639f2 (patch) | |
tree | 26d9c659bf5fea0f28f376e007775230f1b79ed4 /library | |
parent | 8602b7fbf73af0379a1f0114c143669e73055631 (diff) | |
parent | 2462be2b3821467cc6fc2a847e3e9cf4494c831c (diff) | |
download | tcl-4609d947325493cbb0438bd03f6bc912d9f639f2.zip tcl-4609d947325493cbb0438bd03f6bc912d9f639f2.tar.gz tcl-4609d947325493cbb0438bd03f6bc912d9f639f2.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 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 "" |