lib/ffi-tk/tk.rb in ffi-tk-2010.01.02 vs lib/ffi-tk/tk.rb in ffi-tk-2010.02
- old
+ new
@@ -122,11 +122,11 @@
return CONTINUE
end
return BREAK
rescue => ex
- FFI::Tcl::Interp.new(interp).obj_result = ex.message
+ FFI::Tcl::Interp.new(interp).obj_result = ex
return ERROR
end
TCL_CALLBACK = method(:tcl_callback)
# TODO: support for break and continue return status (by catch/throw)
@@ -143,10 +143,10 @@
return CONTINUE
end
return BREAK
rescue => ex
- FFI::Tcl::Interp.new(interp).obj_result = ex.message
+ FFI::Tcl::Interp.new(interp).obj_result = ex
return ERROR
end
TCL_EVENT = method(:tcl_event)
def tcl_cmd_args(interp, objc, objv)