Skip to content

Commit

Permalink
Streamline X::Multi::Ambiguous listing
Browse files Browse the repository at this point in the history
- remove ":", it does not convey any information, clear it's a signature
- add two spaces to set it off the first line
- add "is default" status of the candidate when applicable
  • Loading branch information
lizmat committed Aug 20, 2020
1 parent 2db92e0 commit 999680e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core.c/Exception.pm6
Expand Up @@ -2771,7 +2771,10 @@ my class X::Multi::Ambiguous is Exception {
@priors = flat "Earlier failures:\n", @priors, "\nFinal error:\n " if @priors;
@priors.join ~ join "\n",
"Ambiguous call to '$.dispatcher.name()$cap'; these signatures all match:",
@.ambiguous.map(*.signature.raku)
@.ambiguous.map: {
my $sig := .signature.raku.substr(1);
.?default ?? " $sig is default" !! " $sig"
}
}
}

Expand Down

0 comments on commit 999680e

Please sign in to comment.