Skip to content
Tcl Source Code View Ticket
Login

View Ticket

::errorInfo doesn't exist if no errors have occurred

Closed / Duplicate3480249fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2012-01-27 01:12:31
As of Tcl 8.5.10 (or perhaps earlier) the ::errorInfo variable no longer exists by default.

$ tclsh8.5
% info patchlevel
8.5.10
% set ::errorInfo
can't read "::errorInfo": no such variable

This may cause problems with software that expects ::errorInfo to always exist.

In this example, init.tcl is the source of the error report.
$ tclsh8.5 
% pa re http
2.7.6
% set ::errorInfo
can't read "::errorInfo": no such variable
    while executing
"set savedErrorInfo $::errorInfo"

Should ::errorInfo always be set?
dgpplain2012-01-27 21:32:32
allow_comments - 1

Bug 2824981.
Log in (anonymous is fine) to add a comment.