Skip to content

ErrorQuit vs ErrorMayQuit in error.c #2920

@markuspf

Description

@markuspf

In the GAP master branch the following happens

gap> list := [];
[  ]
gap> list{ [fail] };
Error, List Elements: <positions> must be a dense list of positive integers
not in any function at *stdin*:3
gap> 

So, we don't get a break loop. This turns out to be a bit annoying when debugging code, because if one ends up in a situation where an index list contains invalid entries, one cannot inspect it anymore.

An easy solution to this is to replace ErrorQuit in error.c by ErrorMayQuit, but there might be a deeper reason why this was not used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugIssues describing general bugs, and PRs fixing them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions