Skip to content

GAP.evalstr hiding some GAP errors #1168

Description

@lgoettgens
julia> GAP.evalstr("2^100/0")
ERROR: Error thrown by GAP: 
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] evalstr(cmd::String)
   @ GAP ~/code/julia/GAP.jl/src/ccalls.jl:149
 [3] top-level scope
   @ REPL[10]:1

This suggests that there should be some GAP error message after the :.

When doing the same thing in slightly different ways (without using evalstr), the GAP error message is shown:

julia> GAP.GapObj(BigInt(2)^100) / 0
ERROR: Error thrown by GAP: Error, Rational operations: <divisor> must not be zero
not in any function at *defin*:0
[...]

julia> GAP.prompt()
gap> 2^100/0;
Error, Rational operations: <divisor> must not be zero
not in any function at *stdin*:1
type 'quit;' to quit to outer loop

maybe related to #896

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions