Skip to content

Commit d02b521

Browse files
Fix error message
1 parent e4a13f6 commit d02b521

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/homos.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,9 +1931,10 @@ static bool init_data_from_args(Obj digraph1_obj,
19311931
// group will be used.
19321932

19331933
Obj FuncHomomorphismDigraphsFinder(Obj self, Obj args) {
1934-
if (LEN_PLIST(args) != 11 && LEN_PLIST(args) != 12 && LEN_PLIST(args) != 13) {
1935-
ErrorQuit(
1936-
"there must be 11 or 12 arguments, found %d,", LEN_PLIST(args), 0L);
1934+
if (LEN_PLIST(args) < 11 || LEN_PLIST(args) > 13) {
1935+
ErrorQuit("there must be 11, 12, or 13 arguments, found %d,",
1936+
LEN_PLIST(args),
1937+
0L);
19371938
}
19381939
Obj digraph1_obj = ELM_PLIST(args, 1);
19391940
Obj digraph2_obj = ELM_PLIST(args, 2);

0 commit comments

Comments
 (0)