Mercurial > hg > octave-lyh
diff scripts/pkg/get_forge_pkg.m @ 11472:1740012184f9
Use uppercase for variable names in error() strings to match Info documentation. Only m-files done.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 09 Jan 2011 21:33:04 -0800 |
parents | 2c356a35d7f5 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/scripts/pkg/get_forge_pkg.m +++ b/scripts/pkg/get_forge_pkg.m @@ -30,7 +30,7 @@ endif ## Verify that name is valid. if (! (ischar (name) && rows (name) == 1 && ndims (name) == 2)) - error ("get_forge_pkg: package name must be a string"); + error ("get_forge_pkg: package NAME must be a string"); elseif (! all (isalnum (name) | name == "-" | name == "." | name == "_")) error ("get_forge_pkg: invalid package name: %s", name); endif @@ -66,7 +66,7 @@ t = regexp (html, "<div class=""package"" id=""(\\w+)"">", "tokens"); t = horzcat (t{:}); if (any (strcmp (t, name))) - error ("get_forge_pkg: package name exists, but index page not available"); + error ("get_forge_pkg: package NAME exists, but index page not available"); else ## Try a simplistic method to determine close names. dist = cellfun (@(n) length (setdiff (name, n)), t);