Mercurial > hg > octave-lyh
comparison scripts/help/help.m @ 11215:8b2a47a99701
help: print message if function not found
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 09 Nov 2010 14:52:28 -0500 |
parents | 2c356a35d7f5 |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
11214:7f19b2b6e093 | 11215:8b2a47a99701 |
---|---|
127 endfor | 127 endfor |
128 | 128 |
129 if (found) | 129 if (found) |
130 puts (__additional_help_message__ ()); | 130 puts (__additional_help_message__ ()); |
131 else | 131 else |
132 feval (missing_function_hook, name); | 132 msg = feval (missing_function_hook, name); |
133 | |
134 if (isempty (msg)) | |
135 msg = sprintf ("`%s' not found", name); | |
136 endif | |
137 | |
138 error ("help: %s\n", msg); | |
133 endif | 139 endif |
134 | 140 |
135 endfunction | 141 endfunction |