Skip to content

Commit

Permalink
Merge pull request #582 from ChrisJefferson/gasman-emq
Browse files Browse the repository at this point in the history
Do not allow returning from break loop in GASMAN
  • Loading branch information
fingolfin committed Feb 7, 2016
2 parents e6576c1 + 9581801 commit 3a8a77f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1978,11 +1978,10 @@ Obj FuncGASMAN (
Char buf[41];

/* check the argument */
while ( ! IS_SMALL_LIST(args) || LEN_LIST(args) == 0 ) {
args = ErrorReturnObj(
if ( ! IS_SMALL_LIST(args) || LEN_LIST(args) == 0 ) {
ErrorMayQuit(
"usage: GASMAN( \"display\"|\"displayshort\"|\"clear\"|\"collect\"|\"message\"|\"partial\" )",
0L, 0L,
"you can replace the argument list <args> via 'return <args>;'" );
0L, 0L);
}

/* loop over the arguments */
Expand Down

0 comments on commit 3a8a77f

Please sign in to comment.