Overview
| Artifact ID: | e4cdb1740c29d0a8caebc7684a369c22f08299cc |
|---|---|
| Ticket: | 431992ffffffffffffffffffffffffffffffffff
http::geturl -command doesn't propagate errors |
| User & Date: | welch on 2001-08-15 06:15:20 |
Changes
- icomment:
Logged In: YES user_id=89720 The following fragments shows how you can find out if errors occurred. Is this not sufficient? package require http 2.3 proc badcommand {args} { error foo } set t [http::geturl http://www-internal.panasas.com/index.html -command badcommand] http::wait $t puts "status [http::status $t]" puts "error [http::error $t]" This generates: status error error foo {foo while executing "error foo" (procedure "badcommand" line 2) invoked from within "badcommand $token" ("eval" body line 1) invoked from within "eval $state(-command) {$token}"} NONE If we were really clever we could tweak the errorInfo so it would more clearly show that it was the -command callback. But, the error information is preserved in this case. Perhaps there is another usage case that you are thinking of? - login: "welch"
- mimetype: "text/plain"
- username: "welch"