Skip to content
Tcl Source Code Artifact [e4cdb1740c]
Login

Artifact [e4cdb1740c]

Artifact e4cdb1740c29d0a8caebc7684a369c22f08299cc:

Ticket change [e4cdb1740c] - Ticket [431992ffffffffff|431992ffff] <i>http::geturl -command doesn&#39;t propagate errors</i> status still Open with 4 other changes by welch on 2001-08-15 06:15:20.
D 2001-08-15T06:15:20
J icomment Logged\sIn:\sYES\s\nuser_id=89720\n\nThe\sfollowing\sfragments\sshows\show\syou\scan\sfind\sout\sif\serrors\noccurred.\s\sIs\sthis\snot\ssufficient?\n\npackage\srequire\shttp\s2.3\n\nproc\sbadcommand\s{args}\s{\n\s\s\s\serror\sfoo\n}\n\nset\st\s[http::geturl\nhttp://www-internal.panasas.com/index.html\s-command\nbadcommand]\nhttp::wait\s$t\nputs\s"status\s[http::status\s$t]"\nputs\s"error\s[http::error\s$t]"\n\n\nThis\sgenerates:\n\nstatus\serror\nerror\sfoo\s{foo\n\s\s\s\swhile\sexecuting\n"error\sfoo"\n\s\s\s\s(procedure\s"badcommand"\sline\s2)\n\s\s\s\sinvoked\sfrom\swithin\n"badcommand\s$token"\n\s\s\s\s("eval"\sbody\sline\s1)\n\s\s\s\sinvoked\sfrom\swithin\n"eval\s$state(-command)\s{$token}"}\sNONE\n\nIf\swe\swere\sreally\sclever\swe\scould\stweak\sthe\serrorInfo\sso\nit\swould\smore\sclearly\sshow\sthat\sit\swas\sthe\s-command\ncallback.\nBut,\sthe\serror\sinformation\sis\spreserved\sin\sthis\scase.\s\nPerhaps\nthere\sis\sanother\susage\scase\sthat\syou\sare\sthinking\sof?\n
J login welch
J mimetype text/plain
J username welch
K 431992ffffffffffffffffffffffffffffffffff
U welch
Z 1377f8f0844c4d8289aa3c015172ea29