Skip to content

Commit

Permalink
Add better error
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJefferson committed May 5, 2021
1 parent 072e9cb commit 1cdbe81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gap/GraphBacktracking.gi
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ InstallMethod(ApplyFilters, [IsGBState, IsTracer, IsObject],
return false;
fi;
else
if not IsRecord(f) then
ErrorNoReturn("Refiner must be a function or record: ", filters);
fi;
if IsBound(f.vertlabels) then
# Note that this only covers the 'basic' vertices, any extended ones
# are handled later in 'ShiftGraph'
Expand Down

0 comments on commit 1cdbe81

Please sign in to comment.