Index: openacs-4/packages/acs-api-browser/www/proc-view.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-api-browser/www/proc-view.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-api-browser/www/proc-view.tcl 6 Sep 2002 21:49:54 -0000 1.2 +++ openacs-4/packages/acs-api-browser/www/proc-view.tcl 30 Nov 2002 17:13:37 -0000 1.3 @@ -26,8 +26,18 @@ set source_p $default_source_p } +# Try and be helpful about the procedure. if { ![nsv_exists api_proc_doc $proc] } { - set error_msg "This proc is not defined with ad_proc or proc_doc" + if {![empty_string_p [namespace eval :: [list info procs $proc]]]} { + set error_msg "

This procedure is defined in the server but not documented via ad_proc or proc_doc and may be intended as a private interface.

The procedure is defined as:

+proc $proc {[info args $proc]} {
+[ad_quotehtml [info body $proc]]
+}

" + } elseif {![empty_string_p [namespace eval :: [list info commands $proc]]]} { + set error_msg "

The procedure $proc is an available command on the server and might be found in the TCL or AOLServer documentation or in documentation for a loadable module (like ns_cache for example).

" + } else { + set error_msg "

The procedure $proc is not defined in the server.

" + } } else { if { $source_p } {