Mercurial > octave
changeset 28924:975333a621c1
maint: capitalize input parameters in error() messages.
* ismethod.m, rotate.m, __alltohandles__.m:
Capitalize input parameters in error() messages.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 13 Oct 2020 23:55:49 -0700 |
parents | 3f8e1fa0eed2 |
children | a42d6e376da7 |
files | scripts/miscellaneous/ismethod.m scripts/plot/util/rotate.m scripts/sparse/private/__alltohandles__.m |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/miscellaneous/ismethod.m Tue Oct 13 23:41:17 2020 -0700 +++ b/scripts/miscellaneous/ismethod.m Tue Oct 13 23:55:49 2020 -0700 @@ -42,7 +42,7 @@ endif if (! ischar (method)) - error ("ismethod: second argument must be a method name"); + error ("ismethod: METHOD must be a string"); endif method_list = methods (obj);
--- a/scripts/plot/util/rotate.m Tue Oct 13 23:41:17 2020 -0700 +++ b/scripts/plot/util/rotate.m Tue Oct 13 23:55:49 2020 -0700 @@ -65,7 +65,7 @@ endif if (! (isnumeric (direction) && numel (direction) == 3)) - error ("rotate: invalid direction"); + error ("rotate: invalid DIRECTION"); endif if (! (isnumeric (alpha) && isscalar (alpha)))
--- a/scripts/sparse/private/__alltohandles__.m Tue Oct 13 23:41:17 2020 -0700 +++ b/scripts/sparse/private/__alltohandles__.m Tue Oct 13 23:55:49 2020 -0700 @@ -69,7 +69,7 @@ else A_is_numeric = true; if (size (A, 2) != size (b, 1)) - error ("__alltohandles__: dimension of b is not consistent with A") + error ("__alltohandles__: dimension of B is not consistent with A") endif endif