Skip to content

Commit

Permalink
Switch an error msg away from using "i."
Browse files Browse the repository at this point in the history
Although the new text is longer, I think it's more understandable
in English, in general, than the more German notation "i.".
  • Loading branch information
wilfwilson committed Mar 25, 2021
1 parent ae698cd commit 7618312
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,8 @@ static Obj FuncWindowCmd(Obj self, Obj args)
{
tmp = ELM_LIST( args, i );
if (!IS_INTOBJ(tmp) && !IsStringConv(tmp)) {
ErrorMayQuit("WindowCmd: %d. argument must be a string or integer "
"(not a %s)",
ErrorMayQuit("WindowCmd: the argument in position %d must be a "
"string or integer (not a %s)",
i, (Int)TNAM_OBJ(tmp));
SET_ELM_PLIST(args, i, tmp);
}
Expand Down
4 changes: 2 additions & 2 deletions tst/testinstall/kernel/gap.tst
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ Error, WindowCmd: <cmd> must be a string (not the value 'fail')
gap> WindowCmd([""]);
Error, WindowCmd: <cmd> must be a string of length 3
gap> WindowCmd(["abc",fail]);
Error, WindowCmd: 2. argument must be a string or integer (not a boolean or fa\
il)
Error, WindowCmd: the argument in position 2 must be a string or integer (not \
a boolean or fail)
gap> WindowCmd(["abc"]);
Error, window system: No Window Handler Present
gap> WindowCmd(["abc",1,"foo"]);
Expand Down

0 comments on commit 7618312

Please sign in to comment.