@@ -67,7 +67,12 @@ func (p *Tcl) EvalFile(file string, args []string) {
67 cfile := C.CString(file)
67 cfile := C.CString(file)
68 defer C.free(unsafe.Pointer(cfile))
68 defer C.free(unsafe.Pointer(cfile))
70− C.Tcl_EvalFile(p.interp, cfile)
70+ status := C.Tcl_EvalFile(p.interp, cfile)
72+ if status != C.TCL_OK {
73+ errstr := C.GoString(C.Tcl_GetStringResult(p.interp))
74+ fmt.Fprintf(os.Stderr, "error: %s\n", errstr)
73func (p *Tcl) Eval(code string) {
78func (p *Tcl) Eval(code string) {