Commit 3c8fe86
authored
Faise on --min-cycle-label <= 0 (#15027)
Provides an error message in favor of
```
mix xref graph --format cycles --min-cycle-label 0 --label compile-connected
** (FunctionClauseError) no function clause matching in Enum.count_until/3
The following arguments were given to Enum.count_until/3:
# 1
[{"lib/foo.ex", nil}, {"lib/bar.ex", nil}]
# 2
#Function<4.83728021/1 in Mix.Tasks.Xref.cycle_filter_fn/1>
# 3
0
Attempted function clauses (showing 1 out of 1):
def count_until(enumerable, fun, limit) when is_integer(limit) and limit > 0
(elixir 1.19.4) lib/enum.ex:783: Enum.count_until/3
(mix 1.19.4) lib/mix/tasks/xref.ex:1247: anonymous fn/3 in Mi
```1 parent 8d8111a commit 3c8fe86
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1238 | 1238 | | |
1239 | 1239 | | |
1240 | 1240 | | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
1241 | 1245 | | |
1242 | 1246 | | |
1243 | 1247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
582 | 588 | | |
583 | 589 | | |
584 | 590 | | |
| |||
0 commit comments