Skip to content

Commit 9ae415e

Browse files
author
Rik
committed
maint: merge stable to default
2 parents c5ccbcf + 1ca4cfc commit 9ae415e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libinterp/corefcn/error.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,17 +1177,17 @@ by @samp{error: }.
11771177
11781178
The optional @var{id} argument allows programmers to tag an error
11791179
with a specific identifier so that users can later retrieve it (using
1180-
@code{lasterr} or @var{lasterror}) and know the origin of the error.
1181-
The identifier must contain at least one colon character (@qcode{":"})
1180+
@code{lasterr} or @code{lasterror}) and know the origin of the error.
1181+
The identifier must contain at least one colon character (@qcode{':'})
11821182
and must not contain any whitespace characters. It should be a string of
1183-
the form @qcode{"NAMESPACE:WARNING-NAME"}. Octave's own errors use the
1183+
the form @qcode{"NAMESPACE:ERROR-NAME"}. Octave's own errors use the
11841184
@qcode{"Octave"} namespace (@pxref{XREFerror_ids,,@code{error_ids}}).
11851185
For example:
11861186
11871187
@example
11881188
@group
11891189
error ("MyNameSpace:wrong-type-argument",
1190-
"foo: argument should be numeric");
1190+
"fcn_name: argument should be numeric");
11911191
@end group
11921192
@end example
11931193

0 commit comments

Comments
 (0)