Mercurial > hg > octave-nkf
changeset 19405:d627d9c8adfd
ls_command.m: Overhaul function.
* ls_command.m: Make error message more succinct. Add BIST test.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 04 Oct 2014 19:39:12 -0700 |
parents | b85d4930528d |
children | 8cc4a9bb253b |
files | scripts/miscellaneous/ls_command.m |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/miscellaneous/ls_command.m +++ b/scripts/miscellaneous/ls_command.m @@ -47,7 +47,7 @@ if (ischar (cmd)) __ls_command__ = cmd; else - error ("ls_command: expecting argument to be a character string"); + error ("ls_command: argument must be a character string"); endif endif @@ -65,3 +65,5 @@ %! assert (cmd(1:2), "ls"); %! endif +%!error <argument must be a character string> ls_command (123) +