Mercurial > hg > octave-nkf
diff scripts/help/help.m @ 8631:52956d669506
Display sensible error message when the help text of an undocumented function is requested
author | Soren Hauberg <hauberg@gmail.com> |
---|---|
date | Sun, 25 Jan 2009 19:55:42 +0100 |
parents | 540165304f00 |
children | 5dd06f19e9be |
line wrap: on
line diff
--- a/scripts/help/help.m +++ b/scripts/help/help.m @@ -60,6 +60,8 @@ [text, status] = makeinfo (text, "plain text"); case "html" [text, status] = strip_html_tags (text); + case "not documented" + error ("help: `%s' is not documented\n", name); case "not found" [text, status] = do_contents (name); if (status != 0)