Skip to content

Commit

Permalink
FIX: Moved error message into right place.
Browse files Browse the repository at this point in the history
This resolves (in my eyes) gap-system#1005 and gap-system#1006.
  • Loading branch information
hulpke committed Dec 7, 2016
1 parent dcd687d commit df0e692
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/pcgsind.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1393,15 +1393,14 @@ function( pcgs, elm,range )
ros := RelativeOrders(pa);
while elm <> id do
d := DepthOfPcElement( pa, elm );
if map[d]>max then
if not IsBound(map[d]) then
Error( "<elm> lies not in group defined by <pcgs>" );
elif map[d]>max then
# we have reached the maximum of the range we asked for. Thus we
# can stop calculating exponents now, all further exponents would
# be discarded anyhow
elm:=id;
else
if not IsBound(map[d]) then
Error( "<elm> lies not in group defined by <pcgs>" );
fi;
ll := LeadingExponentOfPcElement( pa, elm );
#lr := LeadingExponentOfPcElement( pa, pcgs[map[d]] );
lr := lc[d];
Expand Down

0 comments on commit df0e692

Please sign in to comment.