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 | 2462be2b3821467cc6fc2a847e3e9cf4494c831c (patch) | |
tree | 8ff016bfe45fa2c2048cd6eeb03f209beafaa738 /library | |
parent | b662395ed59f105a932668feaada9932d46e2fe5 (diff) | |
parent | e52db8b73a4c2395936d72d215e3941b588ce265 (diff) | |
download | tcl-2462be2b3821467cc6fc2a847e3e9cf4494c831c.zip tcl-2462be2b3821467cc6fc2a847e3e9cf4494c831c.tar.gz tcl-2462be2b3821467cc6fc2a847e3e9cf4494c831c.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 "" |