Skip to content

Commit 49a9331

Browse files
committed
oper.gi: add detail to DigraphDisjointUnion error message
1 parent 08e6a29 commit 49a9331

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

gap/oper.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ function(arg)
410410
if not IsList(arg) or IsEmpty(arg)
411411
or not ForAll(arg, IsDigraphByOutNeighboursRep) then
412412
ErrorNoReturn("the arguments must be digraphs by out-neighbours, or a ",
413-
"single list of digraphs by out-neighbours,");
413+
"single non-empty list of digraphs by out-neighbours,");
414414
fi;
415415

416416
D := arg[1];

tst/standard/oper.tst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -876,14 +876,14 @@ gap> gr2 := CompleteDigraph(100);
876876
gap> DigraphDisjointUnion(gr) = gr;
877877
true
878878
gap> DigraphDisjointUnion([[]]);
879-
Error, the arguments must be digraphs by out-neighbours, or a single list of d\
880-
igraphs by out-neighbours,
879+
Error, the arguments must be digraphs by out-neighbours, or a single non-empty\
880+
list of digraphs by out-neighbours,
881881
gap> DigraphDisjointUnion([gr], [gr]);
882-
Error, the arguments must be digraphs by out-neighbours, or a single list of d\
883-
igraphs by out-neighbours,
882+
Error, the arguments must be digraphs by out-neighbours, or a single non-empty\
883+
list of digraphs by out-neighbours,
884884
gap> DigraphDisjointUnion(gr, Group(()));
885-
Error, the arguments must be digraphs by out-neighbours, or a single list of d\
886-
igraphs by out-neighbours,
885+
Error, the arguments must be digraphs by out-neighbours, or a single non-empty\
886+
list of digraphs by out-neighbours,
887887
gap> DigraphDisjointUnion(gr, gr);
888888
<immutable digraph with 2000 vertices, 2000 edges>
889889
gap> DigraphDisjointUnion([gr2, gr2]);

0 commit comments

Comments
 (0)