Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f58f59f79b3380333d90bb9db03214aefa090d9f
Ticket: 2141271fffffffffffffffffffffffffffffffff
Tcl_ParseCommand doesn't set errorInfo for a wrong command
User & Date: dgp on 2008-10-02 23:31:33
Changes

  1. icomment:
    
    Use 
    
    const char *msg = Tcl_GetStringResult(interp);
    
    to fix your code.
    
    If you also want ::errorInfo set, you can
    achieve that by adding
    
    Tcl_AddErrorInfo(interp,"")
    
    in the branch that handles the TCL_ERROR
    return values.
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"