Skip to content

Commit

Permalink
catch a problematic case
Browse files Browse the repository at this point in the history
  • Loading branch information
gaehler committed Dec 20, 2023
1 parent 1157ce5 commit 7ec6ef8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gap/carat.gi
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,6 @@ BindGlobal( "CaratReadBravaisRecord", function( input, str )

res := rec();

if Position( str, '#' ) = fail then

fi;

# read group generators
pos := Position( str, 'g' );

Expand Down Expand Up @@ -350,6 +346,9 @@ InstallGlobalFunction( CaratReadBravaisFile, function( filename )

input := InputTextFile( filename );
str := CaratReadLine( input );
if Position( str, '#' ) = fail then
Error( "Malformed header in CARAT Bravais file ", filename );
fi;
res := CaratReadBravaisRecord( input, str );

CloseStream( input );
Expand Down

0 comments on commit 7ec6ef8

Please sign in to comment.